mirror of
https://github.com/crate-ci/typos.git
synced 2025-02-13 08:40:29 -05:00
style: Silence clippy
This commit is contained in:
parent
a17f6a284a
commit
5ae7bda8eb
2 changed files with 2 additions and 1 deletions
|
@ -47,7 +47,7 @@ impl Entry {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn imply(variants: &mut Vec<Variant>, required: Category, missing: Category) {
|
fn imply(variants: &mut [Variant], required: Category, missing: Category) {
|
||||||
let missing_exists = variants
|
let missing_exists = variants
|
||||||
.iter()
|
.iter()
|
||||||
.any(|v| v.types.iter().any(|t| t.category == missing));
|
.any(|v| v.types.iter().any(|t| t.category == missing));
|
||||||
|
|
|
@ -171,6 +171,7 @@ impl typos::Dictionary for BuiltIn {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[allow(clippy::ptr_arg)]
|
||||||
fn case_correct(correction: &mut Cow<'_, str>, case: Case) {
|
fn case_correct(correction: &mut Cow<'_, str>, case: Case) {
|
||||||
match case {
|
match case {
|
||||||
Case::Lower | Case::None => (),
|
Case::Lower | Case::None => (),
|
||||||
|
|
Loading…
Add table
Reference in a new issue