Skip to content

Commit f552d4c

Browse files
committed
refactor: Remove Eq and PartialEq from KvmError
Eq and PartialEq are not necessary for KvmError, rather disallows me to add error variants wrapping std::io::Error to handle syscall errors. Signed-off-by: Takahiro Itazuri <[email protected]>
1 parent 4b60742 commit f552d4c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vmm/src/vstate/kvm.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ use crate::vstate::memory::{GuestMemory, GuestMemoryMmap};
1313
/// Errors associated with the wrappers over KVM ioctls.
1414
/// Needs `rustfmt::skip` to make multiline comments work
1515
#[rustfmt::skip]
16-
#[derive(Debug, PartialEq, Eq, thiserror::Error, displaydoc::Display)]
16+
#[derive(Debug, thiserror::Error, displaydoc::Display)]
1717
pub enum KvmError {
1818
/// The host kernel reports an invalid KVM API version: {0}
1919
ApiVersion(i32),

0 commit comments

Comments
 (0)