diff --git a/ethers-contract/src/call.rs b/ethers-contract/src/call.rs index 16b7b1b8..d3a26f64 100644 --- a/ethers-contract/src/call.rs +++ b/ethers-contract/src/call.rs @@ -360,6 +360,7 @@ where type IntoFuture = Pin + Send>>; fn into_future(self) -> Self::IntoFuture { + #[allow(clippy::redundant_async_block)] Box::pin(async move { self.call().await }) } } diff --git a/ethers-signers/src/aws/mod.rs b/ethers-signers/src/aws/mod.rs index 2d988252..fdbca554 100644 --- a/ethers-signers/src/aws/mod.rs +++ b/ethers-signers/src/aws/mod.rs @@ -253,7 +253,7 @@ impl super::Signer for AwsSigner { payload.encode_eip712().map_err(|e| Self::Error::Eip712Error(e.to_string()))?; let sig = self.sign_digest(digest).await?; - let sig = utils::sig_from_digest_bytes_trial_recovery(&sig, digest.into(), &self.pubkey); + let sig = utils::sig_from_digest_bytes_trial_recovery(&sig, digest, &self.pubkey); Ok(sig) } diff --git a/ethers-signers/src/aws/utils.rs b/ethers-signers/src/aws/utils.rs index ed45d8c1..481971df 100644 --- a/ethers-signers/src/aws/utils.rs +++ b/ethers-signers/src/aws/utils.rs @@ -40,9 +40,9 @@ pub(super) fn sig_from_digest_bytes_trial_recovery( let r = U256::from_big_endian(r_bytes.as_slice()); let s = U256::from_big_endian(s_bytes.as_slice()); - if check_candidate(&sig, RecoveryId::from_byte(0).unwrap(), digest, vk) { + if check_candidate(sig, RecoveryId::from_byte(0).unwrap(), digest, vk) { EthSig { r, s, v: 0 } - } else if check_candidate(&sig, RecoveryId::from_byte(1).unwrap(), digest, vk) { + } else if check_candidate(sig, RecoveryId::from_byte(1).unwrap(), digest, vk) { EthSig { r, s, v: 1 } } else { panic!("bad sig");