chore: update parameter names in sound.rs
This commit is contained in:
parent
f929cd5989
commit
602a0af4b7
20
src/sound.rs
20
src/sound.rs
|
@ -49,8 +49,8 @@ impl From<u8> for FrequencyHigh {
|
||||||
}
|
}
|
||||||
|
|
||||||
impl From<FrequencyHigh> for u8 {
|
impl From<FrequencyHigh> for u8 {
|
||||||
fn from(duty: FrequencyHigh) -> Self {
|
fn from(freq: FrequencyHigh) -> Self {
|
||||||
duty.0
|
freq.0
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -137,8 +137,8 @@ impl From<u8> for SoundStatus {
|
||||||
}
|
}
|
||||||
|
|
||||||
impl From<SoundStatus> for u8 {
|
impl From<SoundStatus> for u8 {
|
||||||
fn from(duty: SoundStatus) -> Self {
|
fn from(status: SoundStatus) -> Self {
|
||||||
duty.0
|
status.0
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -178,8 +178,8 @@ impl From<u8> for VolumeEnvelope {
|
||||||
}
|
}
|
||||||
|
|
||||||
impl From<VolumeEnvelope> for u8 {
|
impl From<VolumeEnvelope> for u8 {
|
||||||
fn from(duty: VolumeEnvelope) -> Self {
|
fn from(envelope: VolumeEnvelope) -> Self {
|
||||||
duty.0
|
envelope.0
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -312,8 +312,8 @@ impl From<u8> for SoundOutput {
|
||||||
}
|
}
|
||||||
|
|
||||||
impl From<SoundOutput> for u8 {
|
impl From<SoundOutput> for u8 {
|
||||||
fn from(duty: SoundOutput) -> Self {
|
fn from(output: SoundOutput) -> Self {
|
||||||
duty.0
|
output.0
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -346,7 +346,7 @@ impl From<u8> for ChannelControl {
|
||||||
}
|
}
|
||||||
|
|
||||||
impl From<ChannelControl> for u8 {
|
impl From<ChannelControl> for u8 {
|
||||||
fn from(duty: ChannelControl) -> Self {
|
fn from(ctrl: ChannelControl) -> Self {
|
||||||
duty.0
|
ctrl.0
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue