Skip to content

Commit

Permalink
Fix clippy and fmt (#133)
Browse files Browse the repository at this point in the history
  • Loading branch information
jrchatruc authored Sep 10, 2024
1 parent 39008d8 commit eee07b9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
5 changes: 1 addition & 4 deletions src/eip712/paymaster_params.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
use ethers::{
types::Address,
utils::rlp::Encodable,
};
use ethers::{types::Address, utils::rlp::Encodable};
use serde::Serialize;

#[derive(Serialize, serde::Deserialize, Clone, Debug, Default)]
Expand Down
1 change: 0 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
#![forbid(unsafe_code)]
#![recursion_limit = "256"]
#![warn(
clippy::allow_attributes_without_reason,
clippy::as_conversions,
clippy::as_ptr_cast_mut,
clippy::unnecessary_cast,
Expand Down
4 changes: 2 additions & 2 deletions src/zks_wallet/wallet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -634,7 +634,7 @@ where
))?;

let filtered_log = logs
.get(0)
.first()
.ok_or(ZKSWalletError::CustomError(
"Error getting log in receipt".to_owned(),
))?
Expand Down Expand Up @@ -663,7 +663,7 @@ where

let message: Bytes = decode(&[ParamType::Bytes], &filtered_log.data)
.map_err(|e| ZKSWalletError::CustomError(format!("failed to decode log data: {e}")))?
.get(0)
.first()
.ok_or(ZKSWalletError::CustomError(
"Message not found in decoded data".to_owned(),
))?
Expand Down

0 comments on commit eee07b9

Please sign in to comment.