mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-08 04:36:45 +01:00
fix warnings
This commit is contained in:
parent
2ef9628ab8
commit
e5752ea4b0
13 changed files with 16 additions and 22 deletions
|
|
@ -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> {
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue