mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
tdx: Address Rust 1.51.0 clippy issue (upper_case_acroynms)
error: name `FinalizeTDX` contains a capitalized acronym
--> vmm/src/vm.rs:274:5
|
274 | FinalizeTDX(hypervisor::HypervisorVmError),
| ^^^^^^^^^^^ help: consider making the acronym lowercase, except the initial letter: `FinalizeTdx`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#upper_case_acronyms
Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
@@ -123,7 +123,7 @@ pub enum ValidationError {
|
||||
InvalidHugePageSize(u64),
|
||||
// CPU Hotplug not permitted with TDX
|
||||
#[cfg(feature = "tdx")]
|
||||
TdxNoCPUHotplug,
|
||||
TdxNoCpuHotplug,
|
||||
}
|
||||
|
||||
type ValidationResult<T> = std::result::Result<T, ValidationError>;
|
||||
@@ -160,7 +160,7 @@ impl fmt::Display for ValidationError {
|
||||
write!(f, "Huge page size is not power of 2: {}", s)
|
||||
}
|
||||
#[cfg(feature = "tdx")]
|
||||
TdxNoCPUHotplug => {
|
||||
TdxNoCpuHotplug => {
|
||||
write!(f, "CPU hotplug not possible with TDX")
|
||||
}
|
||||
}
|
||||
@@ -1612,7 +1612,7 @@ impl VmConfig {
|
||||
return Err(ValidationError::KernelMissing);
|
||||
}
|
||||
if tdx_enabled && (self.cpus.max_vcpus != self.cpus.boot_vcpus) {
|
||||
return Err(ValidationError::TdxNoCPUHotplug);
|
||||
return Err(ValidationError::TdxNoCpuHotplug);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user