chore: lints

This commit is contained in:
Georgios Konstantopoulos 2022-01-29 21:19:49 +02:00
parent 97744b87a6
commit 0c949f65bb
4 changed files with 6 additions and 6 deletions

View File

@ -201,7 +201,7 @@ impl Client {
contract: &VerifyContract,
) -> Result<Response<String>> {
let body = self.create_query("contract", "verifysourcecode", contract);
Ok(self.post_form(&body).await?)
self.post_form(&body).await
}
/// Check Source Code Verification Status with receipt received from
@ -215,7 +215,7 @@ impl Client {
"checkverifystatus",
HashMap::from([("guid", guid.as_ref())]),
);
Ok(self.post_form(&body).await?)
self.post_form(&body).await
}
/// Returns the contract ABI of a verified contract

View File

@ -177,7 +177,7 @@ impl<'a> AwsSigner<'a> {
where
T: AsRef<str>,
{
Ok(request_get_pubkey(self.kms, key_id).await.map(utils::decode_pubkey)??)
request_get_pubkey(self.kms, key_id).await.map(utils::decode_pubkey)?
}
/// Fetch the pubkey associated with this signer's key ID
@ -194,7 +194,7 @@ impl<'a> AwsSigner<'a> {
where
T: AsRef<str>,
{
Ok(request_sign_digest(self.kms, key_id, digest).await.map(utils::decode_signature)??)
request_sign_digest(self.kms, key_id, digest).await.map(utils::decode_signature)?
}
/// Sign a digest with this signer's key

View File

@ -134,7 +134,7 @@ impl TrezorEthereum {
/// Get the account which corresponds to our derivation path
pub async fn get_address(&self) -> Result<Address, TrezorError> {
Ok(self.get_address_with_path(&self.derivation).await?)
self.get_address_with_path(&self.derivation).await
}
/// Gets the account which corresponds to the provided derivation path

View File

@ -262,7 +262,7 @@ impl SolFilesCache {
pub async fn async_write(&self, path: impl AsRef<Path>) -> Result<()> {
let path = path.as_ref();
let content = serde_json::to_vec_pretty(self)?;
Ok(tokio::fs::write(path, content).await.map_err(|err| SolcError::io(err, path))?)
tokio::fs::write(path, content).await.map_err(|err| SolcError::io(err, path))
}
}