From c266e56a02e8c7b597e87ed9658a66373144bb42 Mon Sep 17 00:00:00 2001 From: Rob Bradford Date: Wed, 2 Sep 2020 16:50:22 +0100 Subject: [PATCH] hypervisor: Fix copy and pasted error enum entries Remove unused GetNrVcpus error and fix duplicated error message for GetCpuId. Signed-off-by: Rob Bradford --- hypervisor/src/hypervisor.rs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/hypervisor/src/hypervisor.rs b/hypervisor/src/hypervisor.rs index 21105b926..055a3db64 100644 --- a/hypervisor/src/hypervisor.rs +++ b/hypervisor/src/hypervisor.rs @@ -46,14 +46,9 @@ pub enum HypervisorError { #[error("Failed to get number of max vcpus: {0}")] GetMaxVcpu(#[source] anyhow::Error), /// - /// Recommended Vcpu error - /// - #[error("Failed to get number of max vcpus: {0}")] - GetNrVcpus(#[source] anyhow::Error), - /// /// CpuId error /// - #[error("Failed to get number of max vcpus: {0}")] + #[error("Failed to get cpuid: {0}")] GetCpuId(#[source] anyhow::Error), /// /// Failed to retrieve list of MSRs.