Skip to content

Commit acde643

Browse files
synth cleanup
1 parent fac07dc commit acde643

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

examples/synth/src/midi_keyboard.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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()),

examples/synth/src/synth/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
use std::collections::HashMap;
2-
use std::time::{Duration, Instant};
2+
use std::time::Instant;
33

44
use rodio::source::Source;
55
use rodio::Sink;

examples/synth/src/synth/oscillator.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ impl Default for OscillatorConfig {
2929
}
3030
}
3131

32+
#[allow(dead_code)]
3233
impl 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)]
191193
impl Oscillator {
192194
/// Create oscillators for different wave types with default configuration
193195
pub fn sine(freq: f32) -> Self {

0 commit comments

Comments
 (0)