From f6e554ba6121c1c1466d3ece46ac9f26916617a2 Mon Sep 17 00:00:00 2001 From: Mikkel Rasmussen Date: Sat, 11 Nov 2023 15:15:30 +0100 Subject: [PATCH] More clippy --- examples/egui.rs | 2 +- examples/piano.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/egui.rs b/examples/egui.rs index 3e75748..429a187 100644 --- a/examples/egui.rs +++ b/examples/egui.rs @@ -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 diff --git a/examples/piano.rs b/examples/piano.rs index b6bc6b7..84c8dc0 100644 --- a/examples/piano.rs +++ b/examples/piano.rs @@ -146,7 +146,7 @@ fn handle_midi_input( mut midi_events: EventReader, 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;