@@ -386,7 +386,7 @@ impl<C: Signing> Secp256k1<C> {
386
386
/// Requires a signing capable context.
387
387
pub fn sign_ecdsa_grind_r ( & self , msg : & Message , sk : & SecretKey , bytes_to_grind : usize ) -> Signature {
388
388
let len_check = |s : & ffi:: Signature | der_length_check ( s, 71 - bytes_to_grind) ;
389
- return self . sign_grind_with_check ( msg, sk, len_check) ;
389
+ self . sign_grind_with_check ( msg, sk, len_check)
390
390
}
391
391
392
392
/// Constructs a signature for `msg` using the secret key `sk`, RFC6979 nonce
@@ -397,7 +397,7 @@ impl<C: Signing> Secp256k1<C> {
397
397
/// Requires a signing capable context.
398
398
#[ deprecated( since = "0.21.0" , note = "Use sign_ecdsa_grind_r instead." ) ]
399
399
pub fn sign_low_r ( & self , msg : & Message , sk : & SecretKey ) -> Signature {
400
- return self . sign_grind_with_check ( msg, sk, compact_sig_has_zero_first_bit)
400
+ self . sign_grind_with_check ( msg, sk, compact_sig_has_zero_first_bit)
401
401
}
402
402
403
403
/// Constructs a signature for `msg` using the secret key `sk`, RFC6979 nonce
@@ -407,7 +407,7 @@ impl<C: Signing> Secp256k1<C> {
407
407
/// will perform two signing operations.
408
408
/// Requires a signing capable context.
409
409
pub fn sign_ecdsa_low_r ( & self , msg : & Message , sk : & SecretKey ) -> Signature {
410
- return self . sign_grind_with_check ( msg, sk, compact_sig_has_zero_first_bit)
410
+ self . sign_grind_with_check ( msg, sk, compact_sig_has_zero_first_bit)
411
411
}
412
412
}
413
413
0 commit comments