chore(vendor): fix unused import and mut warnings in rodio
cc
This commit is contained in:
1 parent
3990d7bdcf
commit
bcbe31d1f4
1 file changed
+2
-2
Vendored
+2
-2
@@ -7,7 +7,7 @@ use crate::dynamic_mixer::{self, DynamicMixerController};
|
||||
use crate::sink::Sink;
|
||||
use crate::source::Source;
|
||||
use cpal::traits::{DeviceTrait, HostTrait, StreamTrait};
|
||||
use cpal::{BufferSize, Sample, SupportedBufferSize, SupportedStreamConfig};
|
||||
use cpal::{Sample, SupportedStreamConfig};
|
||||
|
||||
/// `cpal::Stream` container. Also see the more useful `OutputStreamHandle`.
|
||||
///
|
||||
@@ -210,7 +210,7 @@ impl CpalDeviceExt for cpal::Device {
|
||||
|
||||
let error_callback = |err| eprintln!("an error occurred on output stream: {}", err);
|
||||
|
||||
let mut config = format.config();
|
||||
let config = format.config();
|
||||
match format.sample_format() {
|
||||
cpal::SampleFormat::F32 => self.build_output_stream::<f32, _, _>(
|
||||
&config,
|
||||
|
||||
Reference in new issue
Block a user