Skip to content

Commit f4a4565

Browse files
committed
clippy
1 parent 69b4631 commit f4a4565

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/did/src/evm_state.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ pub enum EvmResetState {
1414
/// End of the reset process.
1515
/// It sets the state to the given block.
1616
/// If the block state hash is not equal to the current state hash, it will fail.
17-
End(Block<H256>),
17+
End(Box<Block<H256>>),
1818
}
1919

2020
/// The EVM global state

src/ethereum-json-rpc-client/src/canister_client.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ impl<T: CanisterClient + Sync + 'static> Client for T {
3636
}
3737
.map_err(|e| {
3838
log::warn!("failed to send RPC request: {e}");
39-
JsonRpcError::CanisterClient(e)
39+
JsonRpcError::CanisterClient(e.into())
4040
})?;
4141

4242
let response = serde_json::from_slice(&http_response.body)?;

src/ethereum-json-rpc-client/src/error.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ pub enum JsonRpcError {
1414
/// Canister client error [`ic_canister_client::CanisterClientError`]
1515
#[cfg(feature = "ic-canister-client")]
1616
#[error("Canister client error: {0}")]
17-
CanisterClient(#[from] ic_canister_client::CanisterClientError),
17+
CanisterClient(#[from] Box<ic_canister_client::CanisterClientError>),
1818
#[error("Canister call failed: {0}")]
1919
CanisterCall(#[from] CallError),
2020
/// Error while parsing the JSON response.

0 commit comments

Comments
 (0)