-
Notifications
You must be signed in to change notification settings - Fork 59
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
chore: remove lazy_static in favor of LazyLock #365
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #365 +/- ##
==========================================
+ Coverage 74.71% 74.89% +0.17%
==========================================
Files 43 43
Lines 8361 8409 +48
Branches 8361 8409 +48
==========================================
+ Hits 6247 6298 +51
+ Misses 1727 1724 -3
Partials 387 387 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice. Should we also remove the lazy_static
crate, tho?
Co-authored-by: Ryan Johnson <[email protected]>
A checkout reverted my removal of the crate, we should be good to go now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm! thanks
Turns out we don't use lazy static in many places so potentially removing the dependency is straight forward. Lazy static itself even gives an example from the standard library. https://github.com/rust-lang-nursery/lazy-static.rs?tab=readme-ov-file#standard-library --------- Co-authored-by: Ryan Johnson <[email protected]>
This reverts commit 0968281.
Turns out we don't use lazy static in many places so potentially removing the dependency is straight forward. Lazy static itself even gives an example from the standard library.
https://github.com/rust-lang-nursery/lazy-static.rs?tab=readme-ov-file#standard-library