Skip to content

Commit 330a35a

Browse files
committed
lint: clippy
1 parent e82c2cb commit 330a35a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/signer.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ pub enum LocalOrAws {
1515
}
1616

1717
/// Error during signing
18+
#[allow(clippy::large_enum_variant)] // type about to be deleted
1819
#[derive(Debug, thiserror::Error)]
1920
pub enum SignerError {
2021
/// Error during [`AwsSigner`] instantiation
@@ -44,6 +45,7 @@ impl LocalOrAws {
4445
/// # Panics
4546
///
4647
/// Panics if the env var contents is not a valid secp256k1 private key.
48+
#[allow(clippy::result_large_err)] // type about to be deleted
4749
fn wallet(private_key: &str) -> Result<PrivateKeySigner, SignerError> {
4850
let bytes = hex::decode(private_key.strip_prefix("0x").unwrap_or(private_key))?;
4951
Ok(PrivateKeySigner::from_slice(&bytes).unwrap())

0 commit comments

Comments
 (0)