Skip to content

Commit 7005573

Browse files
committed
make clippy happy
1 parent ff03427 commit 7005573

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

crates/ingress-rpc/src/validation.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -174,13 +174,13 @@ pub async fn validate_bundle(bundle: &EthSendBundle, bundle_gas: u64) -> RpcResu
174174
.unwrap()
175175
.as_secs()
176176
+ Duration::from_secs(3600).as_secs();
177-
if let Some(max_timestamp) = bundle.max_timestamp {
178-
if max_timestamp > valid_timestamp_window {
179-
return Err(EthApiError::InvalidParams(
180-
"Bundle cannot be more than 1 hour in the future".into(),
181-
)
182-
.into_rpc_err());
183-
}
177+
if let Some(max_timestamp) = bundle.max_timestamp
178+
&& max_timestamp > valid_timestamp_window
179+
{
180+
return Err(EthApiError::InvalidParams(
181+
"Bundle cannot be more than 1 hour in the future".into(),
182+
)
183+
.into_rpc_err());
184184
}
185185

186186
// Check max gas limit for the entire bundle

0 commit comments

Comments
 (0)