mirror of
https://github.com/Myriad-Dreamin/tinymist.git
synced 2025-11-23 04:45:21 +00:00
refactor: remove once_cell use from tinymist (#1632)
* refactor: remove `once_cell` use from tinymist * feat: remove more
This commit is contained in:
parent
769fc93df9
commit
72e33e461d
20 changed files with 68 additions and 82 deletions
|
|
@ -5,7 +5,6 @@ use typst::syntax::Span;
|
|||
|
||||
use crate::{prelude::*, LspWorldExt};
|
||||
|
||||
use once_cell::sync::Lazy;
|
||||
use regex::RegexSet;
|
||||
|
||||
/// Stores diagnostics for files.
|
||||
|
|
@ -198,7 +197,7 @@ trait DiagnosticRefiner {
|
|||
|
||||
struct DeprecationRefiner<const MINOR: usize>();
|
||||
|
||||
static DEPRECATION_PATTERNS: Lazy<RegexSet> = Lazy::new(|| {
|
||||
static DEPRECATION_PATTERNS: LazyLock<RegexSet> = LazyLock::new(|| {
|
||||
RegexSet::new([
|
||||
r"unknown variable: style",
|
||||
r"unexpected argument: fill",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue