diff --git a/crates/sound/src/device.rs b/crates/sound/src/device.rs index ed880c8..63cec41 100644 --- a/crates/sound/src/device.rs +++ b/crates/sound/src/device.rs @@ -202,11 +202,7 @@ impl VhostUserSoundThread { let desc_response = descriptors[2]; let mut buf = vec![]; - for i in chmaps - .iter() - .skip(start_id) - .take(count) - { + for i in chmaps.iter().skip(start_id).take(count) { buf.extend_from_slice(i.as_slice()); } desc_chain @@ -241,11 +237,7 @@ impl VhostUserSoundThread { let desc_response = descriptors[2]; let mut buf = vec![]; - for i in jacks - .iter() - .skip(start_id) - .take(count) - { + for i in jacks.iter().skip(start_id).take(count) { buf.extend_from_slice(i.as_slice()); } desc_chain