File tree Expand file tree Collapse file tree 3 files changed +4
-2
lines changed
Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -392,7 +392,7 @@ impl MidiKeyboard {
392392 /// # Arguments
393393 /// * `config` - Configuration for the MIDI keyboard
394394 pub fn show ( config : MidiKeyboardConfig ) -> impl View {
395- focus ( move |has_focus | {
395+ focus ( move |_ | {
396396 let config = config. clone ( ) ;
397397 state (
398398 move || MidiKeyboardState :: new ( config. clone ( ) ) ,
Original file line number Diff line number Diff line change 11use std:: collections:: HashMap ;
2- use std:: time:: { Duration , Instant } ;
2+ use std:: time:: Instant ;
33
44use rodio:: source:: Source ;
55use rodio:: Sink ;
Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ impl Default for OscillatorConfig {
2929 }
3030}
3131
32+ #[ allow( dead_code) ]
3233impl OscillatorConfig {
3334 /// Create a new configuration with custom parameters
3435 pub fn new ( ) -> Self {
@@ -188,6 +189,7 @@ pub struct Oscillator {
188189 analog_osc : AnalogOsc ,
189190}
190191
192+ #[ allow( dead_code) ]
191193impl Oscillator {
192194 /// Create oscillators for different wave types with default configuration
193195 pub fn sine ( freq : f32 ) -> Self {
You can’t perform that action at this time.
0 commit comments