Skip to content

Commit 384a1a4

Browse files
committed
refactor: Remove unneeded turbo fish (::) in unit test
Some structs are imported in the last commit. Let's remove turbo fish! Signed-off-by: Takahiro Itazuri <[email protected]>
1 parent 9ea85d5 commit 384a1a4

File tree

1 file changed

+11
-12
lines changed

1 file changed

+11
-12
lines changed

src/vmm/src/cpu_config/x86_64/cpuid/intel/normalize.rs

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -398,22 +398,21 @@ mod tests {
398398

399399
#[test]
400400
fn test_update_extended_feature_flags_entry() {
401-
let mut cpuid =
402-
crate::cpu_config::x86_64::cpuid::IntelCpuid(std::collections::BTreeMap::from([(
403-
crate::cpu_config::x86_64::cpuid::CpuidKey {
404-
leaf: 0x7,
405-
subleaf: 0,
406-
},
407-
crate::cpu_config::x86_64::cpuid::CpuidEntry {
408-
flags: crate::cpu_config::x86_64::cpuid::KvmCpuidFlags::SIGNIFICANT_INDEX,
409-
..Default::default()
410-
},
411-
)]));
401+
let mut cpuid = IntelCpuid(BTreeMap::from([(
402+
CpuidKey {
403+
leaf: 0x7,
404+
subleaf: 0,
405+
},
406+
CpuidEntry {
407+
flags: KvmCpuidFlags::SIGNIFICANT_INDEX,
408+
..Default::default()
409+
},
410+
)]));
412411

413412
cpuid.update_extended_feature_flags_entry().unwrap();
414413

415414
let leaf_7_0 = cpuid
416-
.get(&crate::cpu_config::x86_64::cpuid::CpuidKey {
415+
.get(&CpuidKey {
417416
leaf: 0x7,
418417
subleaf: 0,
419418
})

0 commit comments

Comments
 (0)