Skip to content

Remove lazily initialized Mutex #723

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Mark-Simulacrum
Copy link
Member

Mutex::new is const since 1.63, which is below the 1.82 MSRV, so this should be fine to rely on. I wouldn't expect this to practically matter ~ever, but spotted this while poking around and it seems like a nice bit of cleanup (also removes a bit of unsafe and a leaked allocation).

Mutex::new is const since 1.63, which is below the 1.82 MSRV, so this
should be fine to rely on.
@Mark-Simulacrum
Copy link
Member Author

(CI failure looks like a bug in GitHub probably?)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant