Browse Source

Clippy

pull/83/head
Andrea Ciliberti 2 years ago
parent
commit
bfd9e00771
  1. 3
      ctru-rs/src/services/ndsp/wave.rs

3
ctru-rs/src/services/ndsp/wave.rs

@ -74,9 +74,8 @@ impl WaveInfo { @@ -74,9 +74,8 @@ impl WaveInfo {
pub fn get_buffer_mut(&mut self) -> Result<&mut [u8], NdspError> {
match self.get_status() {
WaveStatus::Playing | WaveStatus::Queued => {
return Err(NdspError::WaveBusy(self.played_on_channel.unwrap()));
Err(NdspError::WaveBusy(self.played_on_channel.unwrap()))
}
_ => Ok(&mut self.buffer),
}
}

Loading…
Cancel
Save