Skip to content

Commit 96ccbd1

Browse files
committed
lint: clippy
1 parent 470709e commit 96ccbd1

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/utils/signer.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ pub enum LocalOrAws {
6969
pub enum SignerError {
7070
/// Error during [`AwsSigner`] instantiation
7171
#[error("failed to connect AWS signer: {0}")]
72-
AwsSigner(#[from] AwsSignerError),
72+
AwsSigner(#[from] Box<AwsSignerError>),
7373
/// Error loading the private key
7474
#[error("failed to load private key: {0}")]
7575
Wallet(#[from] LocalSignerError),
@@ -78,6 +78,12 @@ pub enum SignerError {
7878
Hex(#[from] alloy::hex::FromHexError),
7979
}
8080

81+
impl From<AwsSignerError> for SignerError {
82+
fn from(err: AwsSignerError) -> Self {
83+
SignerError::AwsSigner(Box::new(err))
84+
}
85+
}
86+
8187
impl LocalOrAws {
8288
/// Load a privkey or AWS signer from environment variables.
8389
pub async fn load(key: &str, chain_id: Option<u64>) -> Result<Self, SignerError> {

0 commit comments

Comments
 (0)