Skip to content

Commit

Permalink
Fix clippy error with --no-default-features
Browse files Browse the repository at this point in the history
  • Loading branch information
gwenn committed Aug 18, 2024
1 parent db7209d commit 6da59c4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/keymap.rs
Original file line number Diff line number Diff line change
Expand Up @@ -582,6 +582,7 @@ impl<'b> InputState<'b> {
} else {
let snd_key = match evt {
// we may have already read the second key in custom_seq_binding
#[allow(clippy::out_of_bounds_indexing)]
Event::KeySeq(ref key_seq) if key_seq.len() > 1 => key_seq[1],
_ => rdr.next_key(true)?,
};
Expand Down

0 comments on commit 6da59c4

Please sign in to comment.