From d76c30c3b446d93768f29b3c8b6ef3f83cb0fe04 Mon Sep 17 00:00:00 2001 From: Dorinda Bassey Date: Wed, 11 Oct 2023 09:54:38 +0200 Subject: [PATCH] sound/device.rs: cargo fmt Signed-off-by: Dorinda Bassey --- crates/sound/src/device.rs | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) 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