Skip to content

Commit c447159

Browse files
committed
chore(clippy): fix clippy warnings again
1 parent 7c1303a commit c447159

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/error.rs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ pub enum BDKCliError {
6363

6464
#[cfg(feature = "redb")]
6565
#[error("Redb StoreError: {0}")]
66-
RedbStoreError(#[from] bdk_redb::error::StoreError),
66+
RedbStoreError(Box<bdk_redb::error::StoreError>),
6767

6868
#[cfg(feature = "redb")]
6969
#[error("Redb dabtabase error: {0}")]
@@ -119,3 +119,10 @@ impl From<ExtractTxError> for BDKCliError {
119119
BDKCliError::PsbtExtractTxError(Box::new(value))
120120
}
121121
}
122+
123+
#[cfg(feature = "redb")]
124+
impl From<bdk_redb::error::StoreError> for BDKCliError {
125+
fn from(err: bdk_redb::error::StoreError) -> Self {
126+
BDKCliError::RedbStoreError(Box::new(err))
127+
}
128+
}

0 commit comments

Comments
 (0)