diff --git a/tests/integration.rs b/tests/integration.rs index bdb258a22..e18d7fb7b 100644 --- a/tests/integration.rs +++ b/tests/integration.rs @@ -522,8 +522,7 @@ fn temp_snapshot_dir_path(tmp_dir: &TempDir) -> String { } fn temp_vmcore_file_path(tmp_dir: &TempDir) -> String { - let vmcore_file = String::from(tmp_dir.as_path().join("vmcore").to_str().unwrap()); - vmcore_file + String::from(tmp_dir.as_path().join("vmcore").to_str().unwrap()) } // Creates the path for direct kernel boot and return the path. diff --git a/vmm/src/config.rs b/vmm/src/config.rs index d213b3a2d..1614dc0b5 100644 --- a/vmm/src/config.rs +++ b/vmm/src/config.rs @@ -636,6 +636,7 @@ impl CpusConfig { // list as it will always be checked for. #[allow(unused_mut)] let mut features = CpuFeatures::default(); + #[allow(clippy::never_loop)] for s in features_list.0 { match >::as_ref(&s) { #[cfg(target_arch = "x86_64")]