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 <philipp.schuster@cyberus-technology.de>
On-behalf-of: SAP philipp.schuster@sap.com
This commit is contained in:
Philipp Schuster 2025-08-15 08:58:55 +02:00 committed by Bo Chen
parent 363273111a
commit f73a6c8d8e
2 changed files with 2 additions and 2 deletions

View file

@ -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.

View file

@ -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 <std::string::String as AsRef<str>>::as_ref(&s) {
#[cfg(target_arch = "x86_64")]