diff --git a/ctru-rs/src/services/ndsp/mod.rs b/ctru-rs/src/services/ndsp/mod.rs
index deedea6..39c485c 100644
--- a/ctru-rs/src/services/ndsp/mod.rs
+++ b/ctru-rs/src/services/ndsp/mod.rs
@@ -172,11 +172,11 @@ impl Channel<'_> {
}
/// Set the channel's volume mix.
- ///
+ ///
/// # Notes
- ///
+ ///
/// The buffer's format is read as:
- ///
+ ///
/// Index 0: Front left volume
/// Index 1: Front right volume
/// Index 2: Back left volume
@@ -210,9 +210,7 @@ impl Channel<'_> {
/// To ensure safety, checks within [WaveInfo] will clear the whole channel queue if any queued [WaveInfo] is dropped prematurely.
pub fn queue_wave(&self, wave: &mut WaveInfo) -> std::result::Result<(), NdspError> {
match wave.get_status() {
- WaveStatus::Playing | WaveStatus::Queued => {
- return Err(NdspError::WaveBusy(self.id))
- }
+ WaveStatus::Playing | WaveStatus::Queued => return Err(NdspError::WaveBusy(self.id)),
_ => (),
}
@@ -234,18 +232,18 @@ impl Channel<'_> {
}
/// Sets the monopole to be a high pass filter.
- ///
+ ///
/// # Notes
- ///
+ ///
/// This is a lower quality filter than the Biquad alternative.
pub fn iir_mono_set_params_high_pass_filter(&self, cut_off_freq: f32) {
unsafe { ctru_sys::ndspChnIirMonoSetParamsHighPassFilter(self.id.into(), cut_off_freq) };
}
/// Sets the monopole to be a low pass filter.
- ///
+ ///
/// # Notes
- ///
+ ///
/// This is a lower quality filter than the Biquad alternative.
pub fn iir_mono_set_params_low_pass_filter(&self, cut_off_freq: f32) {
unsafe { ctru_sys::ndspChnIirMonoSetParamsLowPassFilter(self.id.into(), cut_off_freq) };
diff --git a/ctru-rs/src/services/ndsp/wave.rs b/ctru-rs/src/services/ndsp/wave.rs
index 2409ea0..058177f 100644
--- a/ctru-rs/src/services/ndsp/wave.rs
+++ b/ctru-rs/src/services/ndsp/wave.rs
@@ -97,9 +97,7 @@ impl WaveInfo {
pub fn set_sample_count(&mut self, sample_count: u32) -> Result<(), NdspError> {
match self.get_status() {
WaveStatus::Playing | WaveStatus::Queued => {
- return Err(NdspError::WaveBusy(
- self.played_on_channel.unwrap(),
- ));
+ return Err(NdspError::WaveBusy(self.played_on_channel.unwrap()));
}
_ => (),
}