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:
Daniel Rainer
2025-08-16 19:03:04 +02:00
committed by Peter Ammon
parent 70a9327858
commit 367696b346

View File

@@ -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)