Skip to content

Commit 847a50c

Browse files
committed
Fix clippy
1 parent 8c74f3f commit 847a50c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/muralpay/src/error.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ pub enum TransferError {
3333
#[display("no transfer API key")]
3434
NoTransferKey,
3535
#[display("API error")]
36-
Api(ApiError),
36+
Api(Box<ApiError>),
3737
#[display("request error")]
3838
Request(reqwest::Error),
3939
#[display("failed to decode response\n{json:?}")]
@@ -53,7 +53,7 @@ pub enum TransferError {
5353
impl From<MuralError> for TransferError {
5454
fn from(value: MuralError) -> Self {
5555
match value {
56-
MuralError::Api(x) => Self::Api(x),
56+
MuralError::Api(x) => Self::Api(Box::new(x)),
5757
MuralError::Request(x) => Self::Request(x),
5858
MuralError::Decode { source, json } => {
5959
Self::Decode { source, json }

0 commit comments

Comments
 (0)