Skip to content

Commit 4557f82

Browse files
committed
Add non_exhaustive back
1 parent 6264c29 commit 4557f82

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cryptoki/src/object.rs

+2
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ use std::ops::Deref;
1717
const MAX_CU_ULONG: CK_ULONG = !0;
1818

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

415416
#[derive(Debug, Clone, PartialEq, Eq)]
417+
#[non_exhaustive]
416418
/// Attribute value
417419
pub enum Attribute {
418420
/// DER-encoding of the attribute certificate's issuer

0 commit comments

Comments
 (0)