fix warnings

This commit is contained in:
🪞👃🪞 2025-05-10 21:44:36 +03:00
parent 2ef9628ab8
commit e5752ea4b0
13 changed files with 16 additions and 22 deletions

View file

@ -82,7 +82,7 @@ use crate::*;
editor.put_note(false);
Ok(None)
}
fn note_del (editor: &mut MidiEditor) -> Perhaps<Self> {
fn note_del (_editor: &mut MidiEditor) -> Perhaps<Self> {
todo!()
}
fn note_pos (editor: &mut MidiEditor, pos: usize) -> Perhaps<Self> {

View file

@ -9,7 +9,7 @@ pub struct MidiEditor {
}
impl std::fmt::Debug for MidiEditor {
fn fmt (&self, f: &mut std::fmt::Formatter<'_>) -> std::result::Result<(), std::fmt::Error> {
fn fmt (&self, f: &mut Formatter<'_>) -> std::result::Result<(), std::fmt::Error> {
f.debug_struct("MidiEditor")
.field("mode", &self.mode)
.finish()

View file

@ -286,7 +286,7 @@ impl MidiViewer for PianoHorizontal {
}
impl std::fmt::Debug for PianoHorizontal {
fn fmt (&self, f: &mut std::fmt::Formatter<'_>) -> std::result::Result<(), std::fmt::Error> {
fn fmt (&self, f: &mut Formatter<'_>) -> std::result::Result<(), std::fmt::Error> {
let buffer = self.buffer.read().unwrap();
f.debug_struct("PianoHorizontal")
.field("time_zoom", &self.range.time_zoom)