fix compilation warnings
This commit is contained in:
parent
9ca0da8480
commit
1fcefab966
|
|
@ -146,18 +146,9 @@ impl MidiInputManager {
|
||||||
connection,
|
connection,
|
||||||
});
|
});
|
||||||
println!("MIDI: Connected to: {}", port_name);
|
println!("MIDI: Connected to: {}", port_name);
|
||||||
|
|
||||||
// Need to recreate MidiInput for next iteration
|
|
||||||
let _midi_in = MidiInput::new("Lightningbeam")
|
|
||||||
.map_err(|e| format!("Failed to recreate MIDI input: {}", e))?;
|
|
||||||
midi_in = _midi_in;
|
|
||||||
}
|
}
|
||||||
Err(e) => {
|
Err(e) => {
|
||||||
eprintln!("MIDI: Failed to connect to {}: {}", port_name, e);
|
eprintln!("MIDI: Failed to connect to {}: {}", port_name, e);
|
||||||
// Recreate MidiInput to continue with other ports
|
|
||||||
let _midi_in = MidiInput::new("Lightningbeam")
|
|
||||||
.map_err(|e| format!("Failed to recreate MIDI input: {}", e))?;
|
|
||||||
midi_in = _midi_in;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue