diff --git a/Cargo.toml b/Cargo.toml index 458dd8759..1c047a80b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -196,6 +196,7 @@ len_without_is_empty = "allow" # we're not a library crate let_and_return = "allow" manual_range_contains = "allow" map_unwrap_or = "warn" +mut_mut = "warn" needless_lifetimes = "allow" new_without_default = "allow" option_map_unit_fn = "allow" diff --git a/src/complete.rs b/src/complete.rs index f7d894936..3d60d3f44 100644 --- a/src/complete.rs +++ b/src/complete.rs @@ -2305,7 +2305,7 @@ pub fn complete_add( // Lock the lock that allows us to edit the completion entry list. let mut completion_map = COMPLETION_MAP.lock().expect("mutex poisoned"); - let c = &mut completion_map + let c = completion_map .entry(CompletionEntryIndex { name: cmd, is_path: cmd_is_path,