diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2024-01-26 14:43:32 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-01-26 14:43:32 +0100 |
| commit | 57f63a3a853466e98ef2a071347a4588b91925a3 (patch) | |
| tree | eeba8465e30067df64dc722ab725de64b60ec57b /clippy_dev | |
| parent | f096e911252fb2213be775fd1528c71f1f01ffc7 (diff) | |
| parent | 9ce0b837ad1a18770d0f261093c68ee351b91cc7 (diff) | |
| download | rust-57f63a3a853466e98ef2a071347a4588b91925a3.tar.gz rust-57f63a3a853466e98ef2a071347a4588b91925a3.zip | |
Rollup merge of #120345 - flip1995:clippy-subtree-update, r=Manishearth
Clippy subtree update r? `@Manishearth` Closes https://github.com/rust-lang/rust-clippy/issues/12148
Diffstat (limited to 'clippy_dev')
| -rw-r--r-- | clippy_dev/Cargo.toml | 4 | ||||
| -rw-r--r-- | clippy_dev/src/update_lints.rs | 3 |
2 files changed, 3 insertions, 4 deletions
diff --git a/clippy_dev/Cargo.toml b/clippy_dev/Cargo.toml index ce738e3f4ec..5ec67554e7d 100644 --- a/clippy_dev/Cargo.toml +++ b/clippy_dev/Cargo.toml @@ -4,11 +4,11 @@ version = "0.0.1" edition = "2021" [dependencies] -aho-corasick = "0.7" +aho-corasick = "1.0" clap = "4.1.4" indoc = "1.0" itertools = "0.11" -opener = "0.5" +opener = "0.6" shell-escape = "0.1" walkdir = "2.3" diff --git a/clippy_dev/src/update_lints.rs b/clippy_dev/src/update_lints.rs index f598f5d3d50..2222abff7ad 100644 --- a/clippy_dev/src/update_lints.rs +++ b/clippy_dev/src/update_lints.rs @@ -504,9 +504,8 @@ fn replace_ident_like(contents: &str, replacements: &[(&str, &str)]) -> Option<S } let searcher = AhoCorasickBuilder::new() - .dfa(true) .match_kind(aho_corasick::MatchKind::LeftmostLongest) - .build_with_size::<u16, _, _>(replacements.iter().map(|&(x, _)| x.as_bytes())) + .build(replacements.iter().map(|&(x, _)| x.as_bytes())) .unwrap(); let mut result = String::with_capacity(contents.len() + 1024); |
