From bfd9e00771d97b1b10ec6e05ff4ddb478de4cb73 Mon Sep 17 00:00:00 2001 From: Andrea Ciliberti Date: Tue, 24 Jan 2023 20:00:55 +0100 Subject: [PATCH] Clippy --- ctru-rs/src/services/ndsp/wave.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ctru-rs/src/services/ndsp/wave.rs b/ctru-rs/src/services/ndsp/wave.rs index 941c3d0..4a5de98 100644 --- a/ctru-rs/src/services/ndsp/wave.rs +++ b/ctru-rs/src/services/ndsp/wave.rs @@ -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), } }