mirror of
https://github.com/RustAudio/rodio
synced 2025-03-04 15:07:18 +00:00
style, removes a needless clone()
Was needed before a cargo update call. Update to cpal made the type copy though.
This commit is contained in:
parent
bbc8f00a34
commit
1ed1197cfd
1 changed files with 3 additions and 3 deletions
|
@ -348,11 +348,11 @@ fn supported_output_formats(
|
|||
Ok(supported.into_iter().flat_map(|sf| {
|
||||
let max_rate = sf.max_sample_rate();
|
||||
let min_rate = sf.min_sample_rate();
|
||||
let mut formats = vec![sf.clone().with_max_sample_rate()];
|
||||
let mut formats = vec![sf.with_max_sample_rate()];
|
||||
if HZ_44100 < max_rate && HZ_44100 > min_rate {
|
||||
formats.push(sf.clone().with_sample_rate(HZ_44100))
|
||||
formats.push(sf.with_sample_rate(HZ_44100))
|
||||
}
|
||||
formats.push(sf.clone().with_sample_rate(min_rate));
|
||||
formats.push(sf.with_sample_rate(min_rate));
|
||||
formats
|
||||
}))
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue