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

refactor(formatter): Use OnceCell in Memoized #338

Merged
merged 2 commits into from
Sep 19, 2023
Merged

refactor(formatter): Use OnceCell in Memoized #338

merged 2 commits into from
Sep 19, 2023

Conversation

denbezrukov
Copy link
Contributor

Summary

Use OnceCell for the Memoized memory because that's what the RefCell implemented.

Thank to @MichaReiser

Test Plan

cargo test

@denbezrukov denbezrukov temporarily deployed to Website deployment September 19, 2023 19:45 — with GitHub Actions Inactive
@github-actions github-actions bot added A-Formatter Area: formatter A-Website Area: website A-Changelog Area: changelog labels Sep 19, 2023
@MichaReiser
Copy link
Contributor

Nice. Some other formatter related Prs that could be of interest

astral-sh/ruff#7048

astral-sh/ruff#6552

astral-sh/ruff#7411

@denbezrukov denbezrukov merged commit 1a9de78 into main Sep 19, 2023
@denbezrukov denbezrukov deleted the feat/once branch September 19, 2023 20:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Changelog Area: changelog A-Formatter Area: formatter A-Website Area: website
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants