Skip to content

refactor: replace lazy_static with LazyLock#109

Closed
ribru17 wants to merge 1 commit into
hawkw:mainfrom
ribru17:remove_lazy_static
Closed

refactor: replace lazy_static with LazyLock#109
ribru17 wants to merge 1 commit into
hawkw:mainfrom
ribru17:remove_lazy_static

Conversation

@ribru17
Copy link
Copy Markdown

@ribru17 ribru17 commented Apr 20, 2025

Supercedes #72, closes #71. This commit uses Rust 1.80.0's LazyLock to achieve the behavior previously granted by lazy_static, which can now be removed.

@ribru17 ribru17 force-pushed the remove_lazy_static branch from ffecc96 to 26362e5 Compare April 20, 2025 00:30
@ribru17 ribru17 closed this Apr 20, 2025
@2ndDerivative
Copy link
Copy Markdown

Is this in now or am I missing something?

@ribru17
Copy link
Copy Markdown
Author

ribru17 commented Jun 12, 2025

It's not, I got some weird test failures with this change which are sadly above my pay grade... :( feel free to take a stab at this yourself though

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.

Migrate from lazy_static to once_cell

2 participants