@@ -501,7 +501,7 @@ impl TryFrom<CK_ATTRIBUTE_TYPE> for AttributeType {
501501 CKA_WRAP_WITH_TRUSTED => Ok ( AttributeType :: WrapWithTrusted ) ,
502502 CKA_VENDOR_DEFINED ..=CK_ULONG :: MAX => Ok ( AttributeType :: VendorDefined ( attribute_type) ) ,
503503 attr_type => {
504- error ! ( "Attribute type {} not supported." , attr_type ) ;
504+ error ! ( "Attribute type {attr_type } not supported." ) ;
505505 Err ( Error :: NotSupported )
506506 }
507507 }
@@ -1347,7 +1347,7 @@ impl TryFrom<CK_ML_KEM_PARAMETER_SET_TYPE> for MlKemParameterSetType {
13471347 CKP_ML_KEM_768 => Ok ( MlKemParameterSetType :: ML_KEM_768 ) ,
13481348 CKP_ML_KEM_1024 => Ok ( MlKemParameterSetType :: ML_KEM_1024 ) ,
13491349 _ => {
1350- error ! ( "ML-KEM parameter set {} is not supported." , val ) ;
1350+ error ! ( "ML-KEM parameter set {val } is not supported." ) ;
13511351 Err ( Error :: NotSupported )
13521352 }
13531353 }
@@ -1414,7 +1414,7 @@ impl TryFrom<CK_ML_DSA_PARAMETER_SET_TYPE> for MlDsaParameterSetType {
14141414 CKP_ML_DSA_65 => Ok ( MlDsaParameterSetType :: ML_DSA_65 ) ,
14151415 CKP_ML_DSA_87 => Ok ( MlDsaParameterSetType :: ML_DSA_87 ) ,
14161416 _ => {
1417- error ! ( "ML-DSA parameter set {} is not supported." , val ) ;
1417+ error ! ( "ML-DSA parameter set {val } is not supported." ) ;
14181418 Err ( Error :: NotSupported )
14191419 }
14201420 }
@@ -1657,7 +1657,7 @@ impl TryFrom<CK_OBJECT_CLASS> for ObjectClass {
16571657 CKO_VALIDATION => Ok ( ObjectClass :: VALIDATION ) ,
16581658
16591659 _ => {
1660- error ! ( "Object class {} is not supported." , object_class ) ;
1660+ error ! ( "Object class {object_class } is not supported." ) ;
16611661 Err ( Error :: NotSupported )
16621662 }
16631663 }
@@ -1957,7 +1957,7 @@ impl TryFrom<CK_KEY_TYPE> for KeyType {
19571957 CKK_SLH_DSA => Ok ( KeyType :: SLH_DSA ) ,
19581958 CKK_VENDOR_DEFINED ..=CK_ULONG :: MAX => KeyType :: new_vendor_defined ( key_type) ,
19591959 _ => {
1960- error ! ( "Key type {} is not supported." , key_type ) ;
1960+ error ! ( "Key type {key_type } is not supported." ) ;
19611961 Err ( Error :: NotSupported )
19621962 }
19631963 }
@@ -2033,7 +2033,7 @@ impl TryFrom<CK_CERTIFICATE_TYPE> for CertificateType {
20332033 CKC_X_509_ATTR_CERT => Ok ( CertificateType :: X_509_ATTR ) ,
20342034 CKC_WTLS => Ok ( CertificateType :: WTLS ) ,
20352035 _ => {
2036- error ! ( "Certificate type {} is not supported." , certificate_type ) ;
2036+ error ! ( "Certificate type {certificate_type } is not supported." ) ;
20372037 Err ( Error :: NotSupported )
20382038 }
20392039 }
0 commit comments