From bc60b691c741a5167631f4489ed027edf68b7a6c Mon Sep 17 00:00:00 2001 From: elmattic Date: Mon, 6 Jan 2025 15:24:10 +0100 Subject: [PATCH] Appease Clippy --- src/rpc/methods/eth/trace.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/rpc/methods/eth/trace.rs b/src/rpc/methods/eth/trace.rs index 24d420814ac..5692820955c 100644 --- a/src/rpc/methods/eth/trace.rs +++ b/src/rpc/methods/eth/trace.rs @@ -178,10 +178,10 @@ fn build_trace( // // NOTE: The FFI currently folds all unknown syscall errors into "sys assertion // failed" which is turned into SysErrFatal. - if !address.is_empty() { - if Into::::into(trace.msg_rct.exit_code) == ExitCodeV4::SYS_INSUFFICIENT_FUNDS { - return Ok((None, None)); - } + if !address.is_empty() + && Into::::into(trace.msg_rct.exit_code) == ExitCodeV4::SYS_INSUFFICIENT_FUNDS + { + return Ok((None, None)); } // We may fail before we can even invoke the actor. In that case, we have no 100% reliable