From 3df3b52b18588e3e24d62f37d34f54e73a951dc1 Mon Sep 17 00:00:00 2001 From: xtqqczze <45661989+xtqqczze@users.noreply.github.com> Date: Tue, 13 Jan 2026 14:54:36 +0000 Subject: [PATCH] clippy: fix mut_mut lint https://rust-lang.github.io/rust-clippy/master/index.html#mut_mut Closes #12321 --- Cargo.toml | 1 + src/complete.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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,