Skip to content

Commit

Permalink
More clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
BlackPhlox committed Nov 11, 2023
1 parent 8bb9041 commit f6e554b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/egui.rs
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ impl PianoRoll {
}

fn update_key_states(&mut self, ui: &mut Ui) {
let input = ui.input(|i| i.key_pressed(egui::Key::A));
let _input = ui.input(|i| i.key_pressed(egui::Key::A));
let next_keys = std::array::from_fn(|index| ui.input(|i| i.key_down(KEYS[index])));

self.key_states
Expand Down
2 changes: 1 addition & 1 deletion examples/piano.rs
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ fn handle_midi_input(
mut midi_events: EventReader<MidiData>,
query: Query<(Entity, &Key)>,
) {
for data in midi_events.iter() {
for data in midi_events.read() {
let [_, index, _value] = data.message.msg;
let off = index % 12;
let oct = index.overflowing_div(12).0;
Expand Down

0 comments on commit f6e554b

Please sign in to comment.