From 222beaf84bf4c9b3dc4a9e3febeb3fc363ab22d2 Mon Sep 17 00:00:00 2001 From: Arnaud Gourlay Date: Thu, 28 Nov 2024 20:41:30 +0100 Subject: [PATCH] fix clippy --- src/audio/midi_builder.rs | 3 +-- src/parser/music_parser.rs | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/audio/midi_builder.rs b/src/audio/midi_builder.rs index 73c704c..8e88afc 100644 --- a/src/audio/midi_builder.rs +++ b/src/audio/midi_builder.rs @@ -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::{ @@ -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; diff --git a/src/parser/music_parser.rs b/src/parser/music_parser.rs index 39222cf..4ecdc18 100644 --- a/src/parser/music_parser.rs +++ b/src/parser/music_parser.rs @@ -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;