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

lib: migrate to stable LazyLock #212

Merged
merged 2 commits into from
Dec 3, 2024
Merged

Conversation

muzarski
Copy link
Collaborator

@muzarski muzarski commented Dec 2, 2024

This PR replaces the usages of lazy_static with a LazyLock from standard library, which was stabilized not so long ago.

Pre-review checklist

  • I have split my patch into logically separate commits.
  • All commit messages clearly explain what they change and why.
  • PR description sums up the changes and reasons why they should be introduced.
  • [ ] I have implemented Rust unit tests for the features/changes introduced.
  • [ ] I have enabled appropriate tests in .github/workflows/build.yml in gtest_filter.
  • [ ] I have enabled appropriate tests in .github/workflows/cassandra.yml in gtest_filter.

std::sync::LazyLock (https://doc.rust-lang.org/beta/std/sync/struct.LazyLock.html)
is now stable. We can migrate to it, instead of using external `lazy_static`
dependency.
@muzarski muzarski merged commit 81e668e into scylladb:master Dec 3, 2024
11 checks passed
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