mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-02-23 04:14:26 +08:00
remove unnecessarily silenced lint in history
This commit is contained in:
parent
9af6a64fd2
commit
8a8c2656f3
@ -306,8 +306,8 @@ pub fn history(parser: &Parser, streams: &mut IoStreams, args: &mut [&wstr]) ->
|
|||||||
));
|
));
|
||||||
return STATUS_INVALID_ARGS;
|
return STATUS_INVALID_ARGS;
|
||||||
}
|
}
|
||||||
#[allow(clippy::unnecessary_to_owned)]
|
|
||||||
for delete_string in args.iter().copied() {
|
for &delete_string in args {
|
||||||
history.remove(delete_string.to_owned());
|
history.remove(delete_string.to_owned());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user