Skip to content

Commit

Permalink
Merge pull request #42 from subalterngames/clippy_1.79
Browse files Browse the repository at this point in the history
Fixed 1.79 clippy warnings
  • Loading branch information
subalterngames authored Jun 14, 2024
2 parents a70e673 + ecfb007 commit 9702259
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions render/src/piano_roll_panel/viewable_notes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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?
Expand Down

0 comments on commit 9702259

Please sign in to comment.