From f73a6c8d8e0abf4400656b9c26ac28f832e3e92b Mon Sep 17 00:00:00 2001 From: Philipp Schuster Date: Fri, 15 Aug 2025 08:58:55 +0200 Subject: [PATCH] build: treewide: clippy for edition 2024 This commit includes all simple clippy fixes excluding the collapsing of nested ifs using the let-chains feature. This follows in the next commit. Signed-off-by: Philipp Schuster On-behalf-of: SAP philipp.schuster@sap.com --- tests/integration.rs | 3 +-- vmm/src/config.rs | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) 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")]