Skip to content

Commit

Permalink
Add non_exhaustive back
Browse files Browse the repository at this point in the history
Signed-off-by: Joe Rozner <[email protected]>
  • Loading branch information
jrozner committed Dec 24, 2024
1 parent 6264c29 commit 6921373
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cryptoki/src/object.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ use std::ops::Deref;
const MAX_CU_ULONG: CK_ULONG = !0;

#[derive(Debug, Copy, Clone, Ord, PartialOrd, Eq, PartialEq, Hash)]
#[non_exhaustive]
/// Type of an attribute
pub enum AttributeType {
/// DER-encoding of the attribute certificate's issuer
Expand Down Expand Up @@ -413,6 +414,7 @@ impl TryFrom<CK_ATTRIBUTE_TYPE> for AttributeType {
}

#[derive(Debug, Clone, PartialEq, Eq)]
#[non_exhaustive]
/// Attribute value
pub enum Attribute {
/// DER-encoding of the attribute certificate's issuer
Expand Down

0 comments on commit 6921373

Please sign in to comment.