Skip to content

Commit

Permalink
fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
agourlay committed Nov 28, 2024
1 parent 5a240b2 commit 222beaf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/audio/midi_builder.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/// Thanks to `TuxGuitar` for the reference implementation in `MidiSequenceParser.java`
use crate::audio::midi_event::MidiEvent;
use crate::audio::FIRST_TICK;
use crate::parser::song_parser::{
Expand All @@ -7,8 +8,6 @@ use crate::parser::song_parser::{
};
use std::rc::Rc;

/// Thanks to `TuxGuitar` for the reference implementation in `MidiSequenceParser.java`
const DEFAULT_DURATION_DEAD: i32 = 30;
const DEFAULT_DURATION_PM: i32 = 60;
const DEFAULT_BEND: f32 = 64.0;
Expand Down
2 changes: 1 addition & 1 deletion src/parser/music_parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ impl MusicParser {
std::mem::take(&mut self.song)
}

pub fn parse_music_data<'a>(&'a mut self, i: &'a [u8]) -> IResult<&[u8], ()> {
pub fn parse_music_data<'a>(&'a mut self, i: &'a [u8]) -> IResult<&'a [u8], ()> {
let mut i = i;
let song_version = self.song.version;

Expand Down

0 comments on commit 222beaf

Please sign in to comment.