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

chore: remove lazy_static in favor of LazyLock #365

Merged
merged 4 commits into from
Oct 1, 2024

Conversation

hntd187
Copy link
Collaborator

@hntd187 hntd187 commented Sep 30, 2024

Turns out we don't use lazy static in many places so potentially removing the dependency is straight forward. Lazy static itself even gives an example from the standard library.

https://github.com/rust-lang-nursery/lazy-static.rs?tab=readme-ov-file#standard-library

Copy link

codecov bot commented Sep 30, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 74.89%. Comparing base (da206ed) to head (b7f995e).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #365      +/-   ##
==========================================
+ Coverage   74.71%   74.89%   +0.17%     
==========================================
  Files          43       43              
  Lines        8361     8409      +48     
  Branches     8361     8409      +48     
==========================================
+ Hits         6247     6298      +51     
+ Misses       1727     1724       -3     
  Partials      387      387              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Collaborator

@scovich scovich left a comment

Choose a reason for hiding this comment

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

Nice. Should we also remove the lazy_static crate, tho?

kernel/src/scan/data_skipping.rs Outdated Show resolved Hide resolved
@hntd187
Copy link
Collaborator Author

hntd187 commented Sep 30, 2024

A checkout reverted my removal of the crate, we should be good to go now.

Copy link
Collaborator

@nicklan nicklan left a comment

Choose a reason for hiding this comment

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

lgtm! thanks

@hntd187 hntd187 merged commit e6004ed into delta-io:main Oct 1, 2024
12 checks passed
nicklan pushed a commit to nicklan/delta-kernel-rs that referenced this pull request Oct 2, 2024
Turns out we don't use lazy static in many places so potentially
removing the dependency is straight forward. Lazy static itself even
gives an example from the standard library.


https://github.com/rust-lang-nursery/lazy-static.rs?tab=readme-ov-file#standard-library

---------

Co-authored-by: Ryan Johnson <[email protected]>
nicklan added a commit to nicklan/delta-kernel-rs that referenced this pull request Oct 2, 2024
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