fix compilation warnings

This commit is contained in:
Skyler Lehmkuhl 2025-11-24 11:10:47 -05:00
parent 9ca0da8480
commit 1fcefab966
1 changed files with 0 additions and 9 deletions

View File

@ -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;
} }
} }
} }