mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2024-11-24 20:48:55 +00:00
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:
parent
3df3d394cd
commit
1940445671
1 changed files with 1 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue