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

Migrate Lazy Initialization from Once_Cell to Std #76

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

Conversation

Gifted-s
Copy link

@Gifted-s Gifted-s commented Jul 13, 2024

What was changed

According to the official stable Rust 1.80.0 release. we now have LazyLock and LazyCell as part of the Standard Library(https://blog.rust-lang.org/2024/07/25/Rust-1.80.0.html). This PR upgrades all the once_cell::sync::Lazy to std::sync::LazyLock to ensure the code is current.

Why?

  • Keep code up to date

Warning

This should only be merged after upgrading to Rust 1.80.0 otherwise the merge will introduce a breaking change

Checklist

  • How was this tested: Still compiles.
  • Any docs updates needed: Don't think so.

@Gifted-s Gifted-s force-pushed the fix-remove-deprecated-lazy-static branch from 316f4c6 to 94b0c57 Compare July 30, 2024 16:07
@Gifted-s Gifted-s changed the title Remove lazy-static in favor of once_cell Migrate Lazy Initialization from Once_Cell to Std Jul 30, 2024
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