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

Change lazy_static into once_cell #36

Merged
merged 2 commits into from
Dec 2, 2023

Conversation

chris-ha458
Copy link
Contributor

lazy_static relies on macroes and is limited in scope.
once_cell is much more versatile, and will soon be included in std.
OnceCell is already included inside std and soon Lazy will be included as well
rust-lang/rust#74465

I took a look over the current lazy static initialization of variables and changed lazy_static into once_cell and changed some small variables to be just static instead of lazily static.

@nickspring nickspring merged commit c426e16 into nickspring:main Dec 2, 2023
3 checks passed
@chris-ha458 chris-ha458 deleted the oncecell branch December 5, 2023 00:33
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