Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
debjit-bw committed Oct 8, 2024
1 parent 52ff2f8 commit 0b8cb73
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions src/gnosis.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ where
.deposit_contract
.as_ref()
.ok_or(BlockValidationError::DepositRequestDecode(
"deposit_contract not set".to_owned().into(),
"deposit_contract not set".to_owned(),
))?
.address;

Expand Down Expand Up @@ -88,7 +88,7 @@ where
evm.context.evm.env = previous_env;
return Err(BlockExecutionError::Validation(
BlockValidationError::WithdrawalRequestsContractCall {
message: format!("withdrawal contract system call revert: {}", e).into(),
message: format!("withdrawal contract system call revert: {}", e),
},
));
}
Expand Down Expand Up @@ -146,7 +146,7 @@ where
evm.context.evm.env = previous_env;
return Err(BlockExecutionError::from(
GnosisBlockExecutionError::CustomErrorMessage {
message: format!("block rewards contract system call error: {}", e).into(),
message: format!("block rewards contract system call error: {}", e),
},
));
}
Expand All @@ -161,14 +161,14 @@ where
ExecutionResult::Revert { output, .. } => {
return Err(BlockExecutionError::from(
GnosisBlockExecutionError::CustomErrorMessage {
message: format!("block rewards contract system call revert {}", output).into(),
message: format!("block rewards contract system call revert {}", output),
},
));
}
ExecutionResult::Halt { reason, .. } => {
return Err(BlockExecutionError::from(
GnosisBlockExecutionError::CustomErrorMessage {
message: format!("block rewards contract system call halt {:?}", reason).into(),
message: format!("block rewards contract system call halt {:?}", reason),
},
));
}
Expand All @@ -180,8 +180,7 @@ where
"error parsing block rewards contract system call return {:?}: {}",
hex::encode(output_bytes),
e
)
.into(),
),
})
})?;

Expand Down

0 comments on commit 0b8cb73

Please sign in to comment.