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

Use once_cell instead of lazy_static #1497

Merged
merged 2 commits into from
Nov 1, 2022
Merged

Conversation

ids1024
Copy link
Contributor

@ids1024 ids1024 commented Oct 28, 2022

This seems to be generally considered the preferred, idiomatic solution now. This is in the standard library behind a feature flag (apparently now called std::sync::LazyLock).

This seems to be generally considered the preferred, idiomatic solution
now. This is in the standard library behind a feature flag (apparently
now called `std::sync::LazyLock`).
@hecrj hecrj added the improvement An internal improvement label Nov 1, 2022
@hecrj hecrj added this to the 0.5.0 milestone Nov 1, 2022
Copy link
Member

@hecrj hecrj left a comment

Choose a reason for hiding this comment

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

Awesome! Always great to see some macro magic being dispelled!

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

Successfully merging this pull request may close these issues.

None yet

2 participants