mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-05 08:11:15 -03:00
clippy: fix mut_mut lint
https://rust-lang.github.io/rust-clippy/master/index.html#mut_mut Closes #12321
This commit is contained in:
committed by
Johannes Altmanninger
parent
efbf8b0203
commit
3df3b52b18
@@ -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"
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user