Skip to content

chore: replace once_cell utils with std equivalents #5821

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

Merged
merged 1 commit into from
Jul 8, 2025

Conversation

hanabi1224
Copy link
Contributor

@hanabi1224 hanabi1224 commented Jul 8, 2025

Summary of changes

This PR favors std APIs over external ones since

Parts of once_cell API are included into std rust-lang/rust#105587

Changes introduced in this pull request:

  • replace once_cell::sync::Lazy with std::sync::LazyLock
  • replace once_cell::sync::OnceCell with std::sync::OnceLock

Reference issue to close (if applicable)

Closes

Other information and links

Change checklist

  • I have performed a self-review of my own code,
  • I have made corresponding changes to the documentation. All new code adheres to the team's documentation standards,
  • I have added tests that prove my fix is effective or that my feature works (if possible),
  • I have made sure the CHANGELOG is up-to-date. All user-facing changes should be reflected in this document.

@hanabi1224 hanabi1224 marked this pull request as ready for review July 8, 2025 10:53
@hanabi1224 hanabi1224 requested a review from a team as a code owner July 8, 2025 10:53
@hanabi1224 hanabi1224 requested review from LesnyRumcajs and akaladarshi and removed request for a team July 8, 2025 10:53
@LesnyRumcajs LesnyRumcajs added this pull request to the merge queue Jul 8, 2025
Merged via the queue into main with commit 40598a4 Jul 8, 2025
40 checks passed
@LesnyRumcajs LesnyRumcajs deleted the hm/no-once-cell branch July 8, 2025 14:17
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