mirror of
https://github.com/librespot-org/librespot.git
synced 2024-11-08 16:45:43 +00:00
Merge pull request #926 from JasonLG1979/clippy-lints-portaudio
Fix clippy lint warning
This commit is contained in:
commit
a605444d18
1 changed files with 3 additions and 3 deletions
|
@ -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)
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue