@@ -87,7 +87,7 @@ impl Pkcs11 {
8787 let label = label_from_str ( label) ;
8888 unsafe {
8989 Rv :: from ( get_pkcs11 ! ( self , C_InitToken ) (
90- slot. try_into ( ) ? ,
90+ slot. into ( ) ,
9191 pin. expose_secret ( ) . as_ptr ( ) as * mut u8 ,
9292 pin. expose_secret ( ) . len ( ) . try_into ( ) ?,
9393 label. as_ptr ( ) as * mut u8 ,
@@ -101,7 +101,7 @@ impl Pkcs11 {
101101 unsafe {
102102 let mut slot_info = CK_SLOT_INFO :: default ( ) ;
103103 Rv :: from ( get_pkcs11 ! ( self , C_GetSlotInfo ) (
104- slot. try_into ( ) ? ,
104+ slot. into ( ) ,
105105 & mut slot_info,
106106 ) )
107107 . into_result ( ) ?;
@@ -114,7 +114,7 @@ impl Pkcs11 {
114114 unsafe {
115115 let mut token_info = CK_TOKEN_INFO :: default ( ) ;
116116 Rv :: from ( get_pkcs11 ! ( self , C_GetTokenInfo ) (
117- slot. try_into ( ) ? ,
117+ slot. into ( ) ,
118118 & mut token_info,
119119 ) )
120120 . into_result ( ) ?;
@@ -128,7 +128,7 @@ impl Pkcs11 {
128128
129129 unsafe {
130130 Rv :: from ( get_pkcs11 ! ( self , C_GetMechanismList ) (
131- slot. try_into ( ) ? ,
131+ slot. into ( ) ,
132132 std:: ptr:: null_mut ( ) ,
133133 & mut mechanism_count,
134134 ) )
@@ -139,7 +139,7 @@ impl Pkcs11 {
139139
140140 unsafe {
141141 Rv :: from ( get_pkcs11 ! ( self , C_GetMechanismList ) (
142- slot. try_into ( ) ? ,
142+ slot. into ( ) ,
143143 mechanisms. as_mut_ptr ( ) ,
144144 & mut mechanism_count,
145145 ) )
@@ -160,7 +160,7 @@ impl Pkcs11 {
160160 unsafe {
161161 let mut mechanism_info = CK_MECHANISM_INFO :: default ( ) ;
162162 Rv :: from ( get_pkcs11 ! ( self , C_GetMechanismInfo ) (
163- slot. try_into ( ) ? ,
163+ slot. into ( ) ,
164164 type_. into ( ) ,
165165 & mut mechanism_info,
166166 ) )
0 commit comments