Skip to content

Commit

Permalink
Merge pull request kkawakam#796 from gwenn/clippy
Browse files Browse the repository at this point in the history
Fix clippy error with --no-default-features
  • Loading branch information
gwenn authored Aug 18, 2024
2 parents db7209d + 6da59c4 commit e4eca97
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 e4eca97

Please sign in to comment.