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:
dvdsk 2024-04-06 12:14:08 +02:00
parent bbc8f00a34
commit 1ed1197cfd
No known key found for this signature in database
GPG key ID: 6CF9D20C5709A836

View file

@ -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
}))
}