Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pull] main from Xedon:main #2

Open
wants to merge 12 commits into
base: main
Choose a base branch
from
Open

[pull] main from Xedon:main #2

wants to merge 12 commits into from

Conversation

pull[bot]
Copy link

@pull pull bot commented Apr 7, 2023

See Commits and Changes for more details.


Created by pull[bot]

Can you help keep this open source service alive? 💖 Please sponsor : )

@pull pull bot added ⤵️ automatic pull merge-conflict Resolve conflicts manually labels Apr 7, 2023
@pull pull bot requested a review from lecodeski April 7, 2023 17:26
Xedon and others added 10 commits April 10, 2023 10:22
In multithreaded (or async) contexts, using RefCell (as in
Arc<RefCell<T>>) might cause panics if multiple borrows are
accessed, since RefCell is meant for single-threaded use,
which is why Clippy was complaining when holding a RefCell
borrow across await points.

The thread-safe alternative to RefCell is either Mutex or RwLock,
while the latter is better in read-heavy contexts, hence this change.
* refactor: typo

* refactor: remove unnecessary imports

* refactor: avoid Result wrapping
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
⤵️ automatic pull merge-conflict Resolve conflicts manually
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants