From ecfb0072e05f84dbc1528324e812756ba2f04fcc Mon Sep 17 00:00:00 2001 From: subalterngames Date: Fri, 14 Jun 2024 08:43:14 -0400 Subject: [PATCH] Fixed 1.79 clippy warnings --- render/src/piano_roll_panel/viewable_notes.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/render/src/piano_roll_panel/viewable_notes.rs b/render/src/piano_roll_panel/viewable_notes.rs index 21d40bc..248eb6d 100644 --- a/render/src/piano_roll_panel/viewable_notes.rs +++ b/render/src/piano_roll_panel/viewable_notes.rs @@ -83,10 +83,10 @@ impl<'a> ViewableNotes<'a> { }; // Get the selected notes. - let selected = match state.select_mode.get_notes(&state.music) { - Some(selected) => selected, - None => vec![], - }; + let selected = state + .select_mode + .get_notes(&state.music) + .unwrap_or_default(); let mut notes = vec![]; for note in track.notes.iter() { // Is the note in view?