Skip to content

Commit bfd09f7

Browse files
committed
Clippy fixes for rust version 1.71
1 parent 2396d0d commit bfd09f7

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/context/concrete_base.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ impl ConcreteBaseAudioContext {
196196
}; // nodes will drop now, so base.inner has no copies anymore
197197

198198
let mut base = base;
199-
let mut inner_mut = Arc::get_mut(&mut base.inner).unwrap();
199+
let inner_mut = Arc::get_mut(&mut base.inner).unwrap();
200200
inner_mut.listener_params = Some(listener_params);
201201
inner_mut.destination_channel_config = destination_channel_config;
202202

src/lib.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,12 @@ pub(crate) fn assert_valid_channel_number(channel_number: usize, number_of_chann
204204
}
205205
}
206206

207+
pub(crate) trait AudioBufferIter: Iterator<Item = FallibleBuffer> + Send + 'static {}
208+
209+
impl<M: Iterator<Item = FallibleBuffer> + Send + 'static> AudioBufferIter for M {}
210+
211+
type FallibleBuffer = Result<AudioBuffer, Box<dyn Error + Send + Sync>>;
212+
207213
#[cfg(test)]
208214
mod tests {
209215
use float_eq::assert_float_eq;
@@ -260,9 +266,3 @@ mod tests {
260266
assert_valid_number_of_channels(32);
261267
}
262268
}
263-
264-
pub(crate) trait AudioBufferIter: Iterator<Item = FallibleBuffer> + Send + 'static {}
265-
266-
impl<M: Iterator<Item = FallibleBuffer> + Send + 'static> AudioBufferIter for M {}
267-
268-
type FallibleBuffer = Result<AudioBuffer, Box<dyn Error + Send + Sync>>;

0 commit comments

Comments
 (0)