mirror of
https://github.com/rust-vmm/vhost-device.git
synced 2025-12-27 15:45:44 +00:00
sound/device.rs: cargo fmt
Signed-off-by: Dorinda Bassey <dbassey@redhat.com>
This commit is contained in:
parent
7d84caa08a
commit
d76c30c3b4
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user