We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e82c2cb commit 330a35aCopy full SHA for 330a35a
src/signer.rs
@@ -15,6 +15,7 @@ pub enum LocalOrAws {
15
}
16
17
/// Error during signing
18
+#[allow(clippy::large_enum_variant)] // type about to be deleted
19
#[derive(Debug, thiserror::Error)]
20
pub enum SignerError {
21
/// Error during [`AwsSigner`] instantiation
@@ -44,6 +45,7 @@ impl LocalOrAws {
44
45
/// # Panics
46
///
47
/// Panics if the env var contents is not a valid secp256k1 private key.
48
+ #[allow(clippy::result_large_err)] // type about to be deleted
49
fn wallet(private_key: &str) -> Result<PrivateKeySigner, SignerError> {
50
let bytes = hex::decode(private_key.strip_prefix("0x").unwrap_or(private_key))?;
51
Ok(PrivateKeySigner::from_slice(&bytes).unwrap())
0 commit comments