diff --git a/src/sound.rs b/src/sound.rs index f60c0c6..4ad301c 100644 --- a/src/sound.rs +++ b/src/sound.rs @@ -49,8 +49,8 @@ impl From for FrequencyHigh { } impl From for u8 { - fn from(duty: FrequencyHigh) -> Self { - duty.0 + fn from(freq: FrequencyHigh) -> Self { + freq.0 } } @@ -137,8 +137,8 @@ impl From for SoundStatus { } impl From for u8 { - fn from(duty: SoundStatus) -> Self { - duty.0 + fn from(status: SoundStatus) -> Self { + status.0 } } @@ -178,8 +178,8 @@ impl From for VolumeEnvelope { } impl From for u8 { - fn from(duty: VolumeEnvelope) -> Self { - duty.0 + fn from(envelope: VolumeEnvelope) -> Self { + envelope.0 } } @@ -312,8 +312,8 @@ impl From for SoundOutput { } impl From for u8 { - fn from(duty: SoundOutput) -> Self { - duty.0 + fn from(output: SoundOutput) -> Self { + output.0 } } @@ -346,7 +346,7 @@ impl From for ChannelControl { } impl From for u8 { - fn from(duty: ChannelControl) -> Self { - duty.0 + fn from(ctrl: ChannelControl) -> Self { + ctrl.0 } }