misc: Fix beta clippy issues

Fixing the following clippy issue using `cargo clippy --fix`:

error: variables can be used directly in the `format!` string
  --> build.rs:25:27
   |
25 |         version.push_str(&format!("-{}", extra_version));
   |                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args

Signed-off-by: Bo Chen <bchen@crusoe.ai>
This commit is contained in:
Bo Chen
2025-05-12 21:00:24 +00:00
committed by Jinank Jain
parent 8f402687ce
commit 10ee003d66
10 changed files with 67 additions and 74 deletions

View File

@@ -467,7 +467,7 @@ impl hypervisor::Hypervisor for MshvHypervisor {
match host_ipa {
Ok(ipa) => ipa.try_into().unwrap(),
Err(e) => {
panic!("Failed to get host IPA limit: {:?}", e);
panic!("Failed to get host IPA limit: {e:?}");
}
}
}
@@ -1065,8 +1065,7 @@ impl cpu::Vcpu for MshvVcpu {
}
_ => {
panic!(
"SVM_EXITCODE_HV_DOORBELL_PAGE: Unhandled exit code: {:0x}",
exit_info1
"SVM_EXITCODE_HV_DOORBELL_PAGE: Unhandled exit code: {exit_info1:0x}"
);
}
}
@@ -1226,13 +1225,12 @@ impl cpu::Vcpu for MshvVcpu {
// Clear the SW_EXIT_INFO1 register to indicate no error
self.clear_swexit_info1()?;
}
_ => panic!(
"GHCB_INFO_NORMAL: Unhandled exit code: {:0x}",
exit_code
),
_ => {
panic!("GHCB_INFO_NORMAL: Unhandled exit code: {exit_code:0x}")
}
}
}
_ => panic!("Unsupported VMGEXIT operation: {:0x}", ghcb_op),
_ => panic!("Unsupported VMGEXIT operation: {ghcb_op:0x}"),
}
Ok(cpu::VmExit::Ignore)