From 602a0af4b718723b035d932648ca38cf0c79709d Mon Sep 17 00:00:00 2001 From: Rekai Musuka Date: Mon, 15 Mar 2021 21:43:50 -0500 Subject: [PATCH] chore: update parameter names in sound.rs --- src/sound.rs | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) 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 } }