Skip to content

Commit 9ea926b

Browse files
mutexlox-signalkinetiknz
authored andcommitted
Automatically fix some new nightly clippy warnings.
1 parent 3642fca commit 9ea926b

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/backend/mod.rs

+6-6
Original file line numberDiff line numberDiff line change
@@ -3049,7 +3049,7 @@ struct CoreStreamData<'ctx> {
30493049
audio_dump_output: ffi::cubeb_audio_dump_stream_t,
30503050
}
30513051

3052-
impl<'ctx> Default for CoreStreamData<'ctx> {
3052+
impl Default for CoreStreamData<'_> {
30533053
fn default() -> Self {
30543054
Self {
30553055
stm_ptr: ptr::null(),
@@ -4556,7 +4556,7 @@ impl<'ctx> CoreStreamData<'ctx> {
45564556
}
45574557
}
45584558

4559-
impl<'ctx> Drop for CoreStreamData<'ctx> {
4559+
impl Drop for CoreStreamData<'_> {
45604560
fn drop(&mut self) {
45614561
self.debug_assert_is_on_stream_queue();
45624562
self.stop_audiounits();
@@ -4881,7 +4881,7 @@ impl<'ctx> AudioUnitStream<'ctx> {
48814881
}
48824882
}
48834883

4884-
impl<'ctx> Drop for AudioUnitStream<'ctx> {
4884+
impl Drop for AudioUnitStream<'_> {
48854885
fn drop(&mut self) {
48864886
// Execute destroy in serial queue to avoid collision with reinit when un/plug devices
48874887
self.queue.clone().run_final(|| {
@@ -4891,7 +4891,7 @@ impl<'ctx> Drop for AudioUnitStream<'ctx> {
48914891
}
48924892
}
48934893

4894-
impl<'ctx> StreamOps for AudioUnitStream<'ctx> {
4894+
impl StreamOps for AudioUnitStream<'_> {
48954895
fn start(&mut self) -> Result<()> {
48964896
let was_stopped = self.stopped.load(Ordering::SeqCst);
48974897
let was_draining = self.draining.load(Ordering::SeqCst);
@@ -5175,8 +5175,8 @@ impl<'ctx> StreamOps for AudioUnitStream<'ctx> {
51755175
}
51765176

51775177
#[allow(clippy::non_send_fields_in_send_ty)]
5178-
unsafe impl<'ctx> Send for AudioUnitStream<'ctx> {}
5179-
unsafe impl<'ctx> Sync for AudioUnitStream<'ctx> {}
5178+
unsafe impl Send for AudioUnitStream<'_> {}
5179+
unsafe impl Sync for AudioUnitStream<'_> {}
51805180

51815181
#[cfg(test)]
51825182
mod tests;

0 commit comments

Comments
 (0)