sound/device.rs: cargo fmt

Signed-off-by: Dorinda Bassey <dbassey@redhat.com>
This commit is contained in:
Dorinda Bassey 2023-10-11 09:54:38 +02:00
parent 7d84caa08a
commit d76c30c3b4

View File

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