Skip to content

Commit 3c43d6f

Browse files
committed
removed unnecessary std:hash:BuildHasher
- std:hash:BuildHasher is not used and can be removed Signed-off-by: jackabald <[email protected]>
1 parent 8ad34d1 commit 3c43d6f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/vmm/src/arch/aarch64/fdt.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,11 @@ pub enum FdtError {
6464
}
6565

6666
/// Creates the flattened device tree for this aarch64 microVM.
67-
pub fn create_fdt<T: DeviceInfoForFDT + Clone + Debug, S: std::hash::BuildHasher>(
67+
pub fn create_fdt<T: DeviceInfoForFDT + Clone + Debug>(
6868
guest_mem: &GuestMemoryMmap,
6969
vcpu_mpidr: Vec<u64>,
7070
cmdline: CString,
71-
device_info: &HashMap<(DeviceType, String), T, S>,
71+
device_info: &HashMap<(DeviceType, String), T>,
7272
gic_device: &GICDevice,
7373
vmgenid: &Option<VmGenId>,
7474
initrd: &Option<InitrdConfig>,

src/vmm/src/arch/aarch64/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,11 @@ pub fn arch_memory_regions(size: usize) -> Vec<(GuestAddress, usize)> {
5959
/// * `device_info` - A hashmap containing the attached devices for building FDT device nodes.
6060
/// * `gic_device` - The GIC device.
6161
/// * `initrd` - Information about an optional initrd.
62-
pub fn configure_system<T: DeviceInfoForFDT + Clone + Debug, S: std::hash::BuildHasher>(
62+
pub fn configure_system<T: DeviceInfoForFDT + Clone + Debug>(
6363
guest_mem: &GuestMemoryMmap,
6464
cmdline_cstring: CString,
6565
vcpu_mpidr: Vec<u64>,
66-
device_info: &HashMap<(DeviceType, String), T, S>,
66+
device_info: &HashMap<(DeviceType, String), T>,
6767
gic_device: &GICDevice,
6868
vmgenid: &Option<VmGenId>,
6969
initrd: &Option<super::InitrdConfig>,

0 commit comments

Comments
 (0)