mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
misc: Automatically fix cargo clippy issues added in 1.65 (stable)
The code of the stable branch diverges from the main branch, so we
can't directly backport the corresponding commit to fix the clippy
issues.
See: commit 5e52729453
Signed-off-by: Bo Chen <chen.bo@intel.com>
This commit is contained in:
@@ -873,7 +873,7 @@ impl CpuManager {
|
||||
|
||||
let handle = Some(
|
||||
thread::Builder::new()
|
||||
.name(format!("vcpu{}", vcpu_id))
|
||||
.name(format!("vcpu{vcpu_id}"))
|
||||
.spawn(move || {
|
||||
// Schedule the thread to run on the expected CPU set
|
||||
if let Some(cpuset) = cpuset.as_ref() {
|
||||
@@ -1598,8 +1598,7 @@ impl CpuManager {
|
||||
6 => 52,
|
||||
_ => {
|
||||
return Err(Error::TranslateVirtualAddress(anyhow!(format!(
|
||||
"PA range not supported {}",
|
||||
pa_range
|
||||
"PA range not supported {pa_range}"
|
||||
))))
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user