fix compiler warnings (half)

This commit is contained in:
🪞👃🪞 2024-06-17 19:52:33 +03:00
parent c51bcbfaa8
commit 7fb9369012
9 changed files with 50 additions and 221 deletions

View file

@ -38,7 +38,7 @@ impl Transport {
}
}
pub fn process (state: &mut Transport, client: &Client, scope: &ProcessScope) -> Control {
pub fn process (_: &mut Transport, _: &Client, _: &ProcessScope) -> Control {
Control::Continue
}
@ -222,7 +222,7 @@ pub fn render (state: &Transport, buf: &mut Buffer, mut area: Rect)
//Ok(())
//}
pub fn handle (state: &mut Transport, event: &AppEvent) -> Result<(), Box<dyn Error>> {
pub fn handle (_: &mut Transport, _: &AppEvent) -> Result<(), Box<dyn Error>> {
Ok(())
}
@ -232,24 +232,3 @@ pub const ACTIONS: [(&'static str, &'static str);4] = [
("Arrows", "Navigate"),
("(Shift-)Space", "⯈ Play/pause"),
];
impl NotificationHandler for Transport {
fn thread_init (&self, _: &Client) {}
fn shutdown (&mut self, status: ClientStatus, reason: &str) {}
fn freewheel (&mut self, _: &Client, is_enabled: bool) {}
fn sample_rate (&mut self, _: &Client, _: Frames) -> Control {
Control::Quit
}
fn client_registration (&mut self, _: &Client, name: &str, is_reg: bool) {}
fn port_registration (&mut self, _: &Client, port_id: PortId, is_reg: bool) {}
fn port_rename (&mut self, _: &Client, id: PortId, old: &str, new: &str) -> Control {
Control::Continue
}
fn ports_connected (&mut self, _: &Client, id_a: PortId, id_b: PortId, are: bool) {}
fn graph_reorder (&mut self, _: &Client) -> Control {
Control::Continue
}
fn xrun (&mut self, _: &Client) -> Control {
Control::Continue
}
}