fix some clippy warnings

This commit is contained in:
Kai Giebeler 2022-09-20 21:51:20 +02:00
parent 08acedd677
commit e78a847272
2 changed files with 4 additions and 4 deletions

View file

@ -892,7 +892,7 @@ impl Stream {
let thread = thread::Builder::new() let thread = thread::Builder::new()
.name("cpal_alsa_in".to_owned()) .name("cpal_alsa_in".to_owned())
.spawn(move || { .spawn(move || {
input_stream_worker(rx, &*stream, &mut data_callback, &mut error_callback); input_stream_worker(rx, &stream, &mut data_callback, &mut error_callback);
}) })
.unwrap(); .unwrap();
Stream { Stream {
@ -917,7 +917,7 @@ impl Stream {
let thread = thread::Builder::new() let thread = thread::Builder::new()
.name("cpal_alsa_out".to_owned()) .name("cpal_alsa_out".to_owned())
.spawn(move || { .spawn(move || {
output_stream_worker(rx, &*stream, &mut data_callback, &mut error_callback); output_stream_worker(rx, &stream, &mut data_callback, &mut error_callback);
}) })
.unwrap(); .unwrap();
Stream { Stream {

View file

@ -319,13 +319,13 @@ pub struct OutputStreamTimestamp {
} }
/// Information relevant to a single call to the user's input stream data callback. /// Information relevant to a single call to the user's input stream data callback.
#[derive(Debug, Clone, PartialEq)] #[derive(Debug, Clone, PartialEq, Eq)]
pub struct InputCallbackInfo { pub struct InputCallbackInfo {
timestamp: InputStreamTimestamp, timestamp: InputStreamTimestamp,
} }
/// Information relevant to a single call to the user's output stream data callback. /// Information relevant to a single call to the user's output stream data callback.
#[derive(Debug, Clone, PartialEq)] #[derive(Debug, Clone, PartialEq, Eq)]
pub struct OutputCallbackInfo { pub struct OutputCallbackInfo {
timestamp: OutputStreamTimestamp, timestamp: OutputStreamTimestamp,
} }