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

shm: Use OnceLock instead of static mut #1548

Merged
merged 1 commit into from
Sep 25, 2024
Merged

Conversation

ids1024
Copy link
Member

@ids1024 ids1024 commented Sep 25, 2024

Fixes warning on nightly Rust.

Fixes warning on nightly Rust.
@ids1024
Copy link
Member Author

ids1024 commented Sep 25, 2024

I see #1546 also has a fix for this.

But using OnceLock to avoid a static mut entirely is probably the cleaner solution, unless anyone sees a problem with this.

Copy link
Collaborator

@cmeissl cmeissl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, this is a cleaner solution

@cmeissl cmeissl merged commit 950458c into Smithay:master Sep 25, 2024
13 checks passed
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.

2 participants