riscv64: Fix clippy lint

In preparation for enabling tools/clippy to check riscv, clean up the
warning in the hypervisor crate.

Change-Id: I8b1c6ff54548ee5a3752fb453a4030b7d4582364
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4505757
Reviewed-by: Dennis Kempin <denniskempin@google.com>
Commit-Queue: Dennis Kempin <denniskempin@google.com>
This commit is contained in:
Dylan Reid 2023-05-03 21:09:19 -07:00 committed by crosvm LUCI
parent 3df3d394cd
commit 1940445671

View file

@ -227,7 +227,7 @@ fn create_pci_nodes(
// and "PCI Bus Binding to IEEE Std 1275-1994".
let ranges: Vec<u32> = ranges
.iter()
.map(|r| {
.flat_map(|r| {
let ss = r.space as u32;
let p = r.prefetchable as u32;
[
@ -243,7 +243,6 @@ fn create_pci_nodes(
r.size as u32,
]
})
.flatten()
.collect();
let bus_range = [0, 0]; // Only bus 0