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

replaces once_cell::sync::OnceCell with std::sync::OnceLock #33140

Merged
merged 2 commits into from
Sep 6, 2023

Conversation

behzadnouri
Copy link
Contributor

Problem

std::sync::OnceLock has become stable since rust 1.70.0 and there is no longer a need for an external crate dependency.

Summary of Changes

replaced once_cell::sync::OnceCell with std::sync::OnceLock.

@behzadnouri behzadnouri force-pushed the rm-once-cell branch 7 times, most recently from a4c7695 to dd9b82f Compare September 5, 2023 16:52
@behzadnouri behzadnouri force-pushed the rm-once-cell branch 3 times, most recently from 6d1706f to 1948553 Compare September 5, 2023 22:08
std::sync::OnceLock has become stable since rust 1.70.0 and there is no
longer a need for an external crate dependency.
Copy link
Member

@yihau yihau left a comment

Choose a reason for hiding this comment

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

🪖

@behzadnouri behzadnouri merged commit 88ee8f5 into solana-labs:master Sep 6, 2023
18 checks passed
@behzadnouri behzadnouri deleted the rm-once-cell branch September 6, 2023 16:46
@@ -555,9 +555,3 @@ impl<O: AbiEnumVisitor, E: AbiEnumVisitor> AbiEnumVisitor for Result<O, E> {
digester.create_child()
}
}

impl<T: AbiExample> AbiExample for once_cell::sync::OnceCell<T> {
Copy link
Member

Choose a reason for hiding this comment

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

here

Copy link
Contributor Author

Choose a reason for hiding this comment

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

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.

3 participants