mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-16 23:35:52 +00:00
Bump MSRV to Rust 1.80 (#13826)
This commit is contained in:
parent
075e378b0f
commit
27c50bebec
42 changed files with 110 additions and 133 deletions
|
@ -1,7 +1,6 @@
|
|||
use std::fmt;
|
||||
|
||||
use aho_corasick::{AhoCorasick, AhoCorasickKind, Anchored, Input, MatchKind, StartKind};
|
||||
use once_cell::sync::Lazy;
|
||||
use std::fmt;
|
||||
use std::sync::LazyLock;
|
||||
|
||||
use ruff_text_size::{TextLen, TextRange};
|
||||
|
||||
|
@ -205,7 +204,7 @@ pub fn raw_contents_range(contents: &str) -> Option<TextRange> {
|
|||
}
|
||||
|
||||
/// An [`AhoCorasick`] matcher for string and byte literal prefixes.
|
||||
static PREFIX_MATCHER: Lazy<AhoCorasick> = Lazy::new(|| {
|
||||
static PREFIX_MATCHER: LazyLock<AhoCorasick> = LazyLock::new(|| {
|
||||
AhoCorasick::builder()
|
||||
.start_kind(StartKind::Anchored)
|
||||
.match_kind(MatchKind::LeftmostLongest)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue