Fix clippy lints

This commit is contained in:
Roderick van Domburg 2022-01-04 21:22:52 +01:00
parent 8dbcda6bc2
commit a49bcb70a7
No known key found for this signature in database
GPG key ID: A9EF5222A26F0451

View file

@ -153,15 +153,15 @@ impl<'a> Sink for PortAudioSink<'a> {
let result = match self {
Self::F32(stream, _parameters) => {
let samples_f32: &[f32] = &converter.f64_to_f32(&samples);
let samples_f32: &[f32] = &converter.f64_to_f32(samples);
write_sink!(ref mut stream, samples_f32)
}
Self::S32(stream, _parameters) => {
let samples_s32: &[i32] = &converter.f64_to_s32(&samples);
let samples_s32: &[i32] = &converter.f64_to_s32(samples);
write_sink!(ref mut stream, samples_s32)
}
Self::S16(stream, _parameters) => {
let samples_s16: &[i16] = &converter.f64_to_s16(&samples);
let samples_s16: &[i16] = &converter.f64_to_s16(samples);
write_sink!(ref mut stream, samples_s16)
}
};