From ecfb0072e05f84dbc1528324e812756ba2f04fcc Mon Sep 17 00:00:00 2001 From: subalterngames Date: Fri, 14 Jun 2024 08:43:14 -0400 Subject: [PATCH 1/2] 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? From c68d6289852e10769feba49e30090d8805166146 Mon Sep 17 00:00:00 2001 From: subalterngames Date: Fri, 14 Jun 2024 08:46:54 -0400 Subject: [PATCH 2/2] don't test on main --- .github/workflows/test.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 2277dad..f094927 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -2,6 +2,8 @@ name: test on: push: + branches-ignore: + - main paths-ignore: - "doc/**" - ".vscode/**"