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/src | |
| 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/src')
| -rw-r--r-- | clippy_dev/src/update_lints.rs | 3 |
1 files changed, 1 insertions, 2 deletions
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); |
