mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-31 03:51:14 -03:00
Remove unnecessary into_iter call
Starting with Rust 1.90, this `into_iter` call triggers the `clippy::useless_conversion` lint.
This commit is contained in:
committed by
Peter Ammon
parent
70a9327858
commit
367696b346
@@ -1041,10 +1041,7 @@ fn parse_csi(&mut self, buffer: &mut Vec<u8>) -> Option<KeyEvent> {
|
||||
//
|
||||
// Alternatively, we could relax our exact matching semantics, and make "bind ä"
|
||||
// match the "shift-ä" event, as suggested in the kitty issue.
|
||||
if caps_lock
|
||||
&& modifiers == Modifiers::SHIFT
|
||||
&& !key.to_uppercase().eq(Some(key).into_iter())
|
||||
{
|
||||
if caps_lock && modifiers == Modifiers::SHIFT && !key.to_uppercase().eq(Some(key)) {
|
||||
modifiers.shift = false;
|
||||
}
|
||||
KeyEvent::new_with(modifiers, key, shifted_key, base_layout_key)
|
||||
|
||||
Reference in New Issue
Block a user