-
Notifications
You must be signed in to change notification settings - Fork 157
refactor: Drop once_cell in favor of OnceLock/LazyLock #576
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
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1219,7 +1219,7 @@ impl core::marker::Unpin for syntect::parsing::SyntaxSetBuilder | |
| impl core::panic::unwind_safe::RefUnwindSafe for syntect::parsing::SyntaxSetBuilder | ||
| impl core::panic::unwind_safe::UnwindSafe for syntect::parsing::SyntaxSetBuilder | ||
| pub const syntect::parsing::ATOM_LEN_BITS: u16 = 3u16 | ||
| pub static syntect::parsing::SCOPE_REPO: once_cell::sync::Lazy<std::sync::mutex::Mutex<syntect::parsing::ScopeRepository>> | ||
| pub fn syntect::parsing::scope_repo() -> &'static std::sync::mutex::Mutex<syntect::parsing::ScopeRepository> | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Already mentioned in #575, but this is a breaking change 💥
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If we need to break semver anyway, it is probably better to completely remove it from the public API? We can always add it back in a minor release if someone depends on it. |
||
| pub mod syntect::util | ||
| pub struct syntect::util::LinesWithEndings<'a> | ||
| impl<'a> syntect::util::LinesWithEndings<'a> | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The function should get auto-linked, so I dropped this explicit link, but lmk if that's wrong for some reason