chore: remove trailing semicolon (#5699)

This commit is contained in:
rakita
2023-12-05 16:50:34 +03:00
committed by GitHub
parent 8d8700a5c0
commit 11fd7a2844
8 changed files with 17 additions and 19 deletions

View File

@ -80,7 +80,7 @@ impl Signature {
pub fn v(&self, chain_id: Option<u64>) -> u64 {
#[cfg(feature = "optimism")]
if self.r.is_zero() && self.s.is_zero() {
return 0;
return 0
}
if let Some(chain_id) = chain_id {
@ -107,7 +107,7 @@ impl Signature {
} else {
// non-EIP-155 legacy scheme, v = 27 for even y-parity, v = 28 for odd y-parity
if v != 27 && v != 28 {
return Err(RlpError::Custom("invalid Ethereum signature (V is not 27 or 28)"));
return Err(RlpError::Custom("invalid Ethereum signature (V is not 27 or 28)"))
}
let odd_y_parity = v == 28;
Ok((Signature { r, s, odd_y_parity }, None))
@ -160,7 +160,7 @@ impl Signature {
/// If the S value is too large, then this will return `None`
pub fn recover_signer(&self, hash: B256) -> Option<Address> {
if self.s > SECP256K1N_HALF {
return None;
return None
}
self.recover_signer_unchecked(hash)

View File

@ -424,7 +424,7 @@ impl Nibbles {
debug_assert!(*nibble <= 0xf);
if *nibble < 0xf {
*nibble += 1;
return Some(incremented);
return Some(incremented)
} else {
*nibble = 0;
}