diff --git a/crates/varcon-core/src/lib.rs b/crates/varcon-core/src/lib.rs index c785175..b680515 100644 --- a/crates/varcon-core/src/lib.rs +++ b/crates/varcon-core/src/lib.rs @@ -47,7 +47,7 @@ impl Entry { } } -fn imply(variants: &mut Vec, required: Category, missing: Category) { +fn imply(variants: &mut [Variant], required: Category, missing: Category) { let missing_exists = variants .iter() .any(|v| v.types.iter().any(|t| t.category == missing)); diff --git a/src/dict.rs b/src/dict.rs index 26f527c..f3a28f9 100644 --- a/src/dict.rs +++ b/src/dict.rs @@ -171,6 +171,7 @@ impl typos::Dictionary for BuiltIn { } } +#[allow(clippy::ptr_arg)] fn case_correct(correction: &mut Cow<'_, str>, case: Case) { match case { Case::Lower | Case::None => (),