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:
Rob Bradford
2021-03-25 17:01:21 +00:00
parent e294688904
commit 3c6dfd7709
3 changed files with 12 additions and 12 deletions

View File

@@ -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);
}
}