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;