mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
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:
committed by
Bo Chen
parent
363273111a
commit
f73a6c8d8e
@@ -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")]
|
||||
|
||||
Reference in New Issue
Block a user