@@ -188,7 +188,7 @@ impl BigNumRef {
188
188
/// OpenSSL documentation at [`BN_div_word`]
189
189
///
190
190
/// [`BN_div_word`]: https://www.openssl.org/docs/man1.1.0/crypto/BN_div_word.html
191
- #[ allow( clippy:: identity_conversion ) ]
191
+ #[ allow( clippy:: useless_conversion ) ]
192
192
pub fn div_word ( & mut self , w : u32 ) -> Result < u64 , ErrorStack > {
193
193
unsafe {
194
194
let r = ffi:: BN_div_word ( self . as_ptr ( ) , w. into ( ) ) ;
@@ -205,7 +205,7 @@ impl BigNumRef {
205
205
/// OpenSSL documentation at [`BN_mod_word`]
206
206
///
207
207
/// [`BN_mod_word`]: https://www.openssl.org/docs/man1.1.0/crypto/BN_mod_word.html
208
- #[ allow( clippy:: identity_conversion ) ]
208
+ #[ allow( clippy:: useless_conversion ) ]
209
209
pub fn mod_word ( & self , w : u32 ) -> Result < u64 , ErrorStack > {
210
210
unsafe {
211
211
let r = ffi:: BN_mod_word ( self . as_ptr ( ) , w. into ( ) ) ;
@@ -243,7 +243,7 @@ impl BigNumRef {
243
243
/// OpenSSL documentation at [`BN_set_bit`]
244
244
///
245
245
/// [`BN_set_bit`]: https://www.openssl.org/docs/man1.1.0/crypto/BN_set_bit.html
246
- #[ allow( clippy:: identity_conversion ) ]
246
+ #[ allow( clippy:: useless_conversion ) ]
247
247
pub fn set_bit ( & mut self , n : i32 ) -> Result < ( ) , ErrorStack > {
248
248
unsafe { cvt ( ffi:: BN_set_bit ( self . as_ptr ( ) , n. into ( ) ) ) . map ( |_| ( ) ) }
249
249
}
@@ -255,7 +255,7 @@ impl BigNumRef {
255
255
/// OpenSSL documentation at [`BN_clear_bit`]
256
256
///
257
257
/// [`BN_clear_bit`]: https://www.openssl.org/docs/man1.1.0/crypto/BN_clear_bit.html
258
- #[ allow( clippy:: identity_conversion ) ]
258
+ #[ allow( clippy:: useless_conversion ) ]
259
259
pub fn clear_bit ( & mut self , n : i32 ) -> Result < ( ) , ErrorStack > {
260
260
unsafe { cvt ( ffi:: BN_clear_bit ( self . as_ptr ( ) , n. into ( ) ) ) . map ( |_| ( ) ) }
261
261
}
@@ -265,7 +265,7 @@ impl BigNumRef {
265
265
/// OpenSSL documentation at [`BN_is_bit_set`]
266
266
///
267
267
/// [`BN_is_bit_set`]: https://www.openssl.org/docs/man1.1.0/crypto/BN_is_bit_set.html
268
- #[ allow( clippy:: identity_conversion ) ]
268
+ #[ allow( clippy:: useless_conversion ) ]
269
269
pub fn is_bit_set ( & self , n : i32 ) -> bool {
270
270
unsafe { ffi:: BN_is_bit_set ( self . as_ptr ( ) , n. into ( ) ) == 1 }
271
271
}
@@ -277,7 +277,7 @@ impl BigNumRef {
277
277
/// OpenSSL documentation at [`BN_mask_bits`]
278
278
///
279
279
/// [`BN_mask_bits`]: https://www.openssl.org/docs/man1.1.0/crypto/BN_mask_bits.html
280
- #[ allow( clippy:: identity_conversion ) ]
280
+ #[ allow( clippy:: useless_conversion ) ]
281
281
pub fn mask_bits ( & mut self , n : i32 ) -> Result < ( ) , ErrorStack > {
282
282
unsafe { cvt ( ffi:: BN_mask_bits ( self . as_ptr ( ) , n. into ( ) ) ) . map ( |_| ( ) ) }
283
283
}
@@ -325,7 +325,7 @@ impl BigNumRef {
325
325
/// OpenSSL documentation at [`BN_lshift`]
326
326
///
327
327
/// [`BN_lshift`]: https://www.openssl.org/docs/man1.1.0/crypto/BN_lshift.html
328
- #[ allow( clippy:: identity_conversion ) ]
328
+ #[ allow( clippy:: useless_conversion ) ]
329
329
pub fn lshift ( & mut self , a : & BigNumRef , n : i32 ) -> Result < ( ) , ErrorStack > {
330
330
unsafe { cvt ( ffi:: BN_lshift ( self . as_ptr ( ) , a. as_ptr ( ) , n. into ( ) ) ) . map ( |_| ( ) ) }
331
331
}
@@ -335,7 +335,7 @@ impl BigNumRef {
335
335
/// OpenSSL documentation at [`BN_rshift`]
336
336
///
337
337
/// [`BN_rshift`]: https://www.openssl.org/docs/man1.1.0/crypto/BN_rshift.html
338
- #[ allow( clippy:: identity_conversion ) ]
338
+ #[ allow( clippy:: useless_conversion ) ]
339
339
pub fn rshift ( & mut self , a : & BigNumRef , n : i32 ) -> Result < ( ) , ErrorStack > {
340
340
unsafe { cvt ( ffi:: BN_rshift ( self . as_ptr ( ) , a. as_ptr ( ) , n. into ( ) ) ) . map ( |_| ( ) ) }
341
341
}
@@ -421,7 +421,7 @@ impl BigNumRef {
421
421
///
422
422
/// [`constants`]: index.html#constants
423
423
/// [`BN_rand`]: https://www.openssl.org/docs/man1.1.0/crypto/BN_rand.html
424
- #[ allow( clippy:: identity_conversion ) ]
424
+ #[ allow( clippy:: useless_conversion ) ]
425
425
pub fn rand ( & mut self , bits : i32 , msb : MsbOption , odd : bool ) -> Result < ( ) , ErrorStack > {
426
426
unsafe {
427
427
cvt ( ffi:: BN_rand (
@@ -439,7 +439,7 @@ impl BigNumRef {
439
439
/// OpenSSL documentation at [`BN_psuedo_rand`]
440
440
///
441
441
/// [`BN_psuedo_rand`]: https://www.openssl.org/docs/man1.1.0/crypto/BN_pseudo_rand.html
442
- #[ allow( clippy:: identity_conversion ) ]
442
+ #[ allow( clippy:: useless_conversion ) ]
443
443
pub fn pseudo_rand ( & mut self , bits : i32 , msb : MsbOption , odd : bool ) -> Result < ( ) , ErrorStack > {
444
444
unsafe {
445
445
cvt ( ffi:: BN_pseudo_rand (
@@ -818,7 +818,7 @@ impl BigNumRef {
818
818
/// # Return Value
819
819
///
820
820
/// Returns `true` if `self` is prime with an error probability of less than `0.25 ^ checks`.
821
- #[ allow( clippy:: identity_conversion ) ]
821
+ #[ allow( clippy:: useless_conversion ) ]
822
822
pub fn is_prime ( & self , checks : i32 , ctx : & mut BigNumContextRef ) -> Result < bool , ErrorStack > {
823
823
unsafe {
824
824
cvt_n ( ffi:: BN_is_prime_ex (
@@ -844,7 +844,7 @@ impl BigNumRef {
844
844
/// # Return Value
845
845
///
846
846
/// Returns `true` if `self` is prime with an error probability of less than `0.25 ^ checks`.
847
- #[ allow( clippy:: identity_conversion ) ]
847
+ #[ allow( clippy:: useless_conversion ) ]
848
848
pub fn is_prime_fasttest (
849
849
& self ,
850
850
checks : i32 ,
0 commit comments