Skip to content

Commit 683df49

Browse files
bchaliosJonathanWoollett-Light
authored andcommitted
Derive PartialEq & Eq in capabilities enum
This helps out when we use the Enum inside error types like `thiserror::Error`. Signed-off-by: Babis Chalios <[email protected]>
1 parent a27d964 commit 683df49

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/cap.rs

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ use kvm_bindings::*;
2020
// We are allowing docs to be missing here because this enum is a wrapper
2121
// over auto-generated code.
2222
#[allow(missing_docs)]
23+
#[derive(PartialEq, Eq)]
2324
pub enum Cap {
2425
Irqchip = KVM_CAP_IRQCHIP,
2526
Hlt = KVM_CAP_HLT,

0 commit comments

Comments
 (0)