We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3df67b4 commit 283c1bbCopy full SHA for 283c1bb
cryptoki/src/session/mod.rs
@@ -95,12 +95,14 @@ pub enum UserType {
95
}
96
97
impl From<UserType> for CK_USER_TYPE {
98
+ // Mask lint for n.into() on 32-bit systems.
99
+ #![allow(clippy::useless_conversion)]
100
fn from(user_type: UserType) -> CK_USER_TYPE {
101
match user_type {
102
UserType::So => CKU_SO,
103
UserType::User => CKU_USER,
104
UserType::ContextSpecific => CKU_CONTEXT_SPECIFIC,
- UserType::VendorExtension(n) => n as CK_USER_TYPE,
105
+ UserType::VendorExtension(n) => n.into(),
106
107
108
0 commit comments