From e5a51095e59dd847d15a65ee3265883af59d07dc Mon Sep 17 00:00:00 2001 From: zeroXbrock <2791467+zeroXbrock@users.noreply.github.com> Date: Wed, 17 Jul 2024 16:33:33 -0700 Subject: [PATCH] lint again --- crates/anvil/src/eth/backend/mem/mod.rs | 9 +++++++-- crates/doc/src/preprocessor/infer_hyperlinks.rs | 5 ++++- crates/evm/evm/src/executors/invariant/mod.rs | 4 +++- 3 files changed, 14 insertions(+), 4 deletions(-) diff --git a/crates/anvil/src/eth/backend/mem/mod.rs b/crates/anvil/src/eth/backend/mem/mod.rs index 58e3aa0fec9f..be173b1ee71d 100644 --- a/crates/anvil/src/eth/backend/mem/mod.rs +++ b/crates/anvil/src/eth/backend/mem/mod.rs @@ -2151,7 +2151,9 @@ impl Backend { if let Some(fork) = self.get_fork() { let number = self.convert_block_number(Some(number)); if fork.predates_fork(number) { - return Ok(fork.transaction_by_block_number_and_index(number, index.into()).await?); + return Ok(fork + .transaction_by_block_number_and_index(number, index.into()) + .await?); } } @@ -2207,7 +2209,10 @@ impl Backend { } if let Some(fork) = self.get_fork() { - return fork.transaction_by_hash(hash).await.map_err(BlockchainError::AlloyForkProvider); + return fork + .transaction_by_hash(hash) + .await + .map_err(BlockchainError::AlloyForkProvider); } Ok(None) diff --git a/crates/doc/src/preprocessor/infer_hyperlinks.rs b/crates/doc/src/preprocessor/infer_hyperlinks.rs index a5b55bbd0aa5..651d20ac4942 100644 --- a/crates/doc/src/preprocessor/infer_hyperlinks.rs +++ b/crates/doc/src/preprocessor/infer_hyperlinks.rs @@ -120,7 +120,10 @@ impl InferInlineHyperlinks { ParseSource::Event(ev) => { let ev_name = &ev.name.safe_unwrap().name; if ev_name == link.ref_name() { - return Some(InlineLinkTarget::borrowed(ev_name, target_path.to_path_buf())); + return Some(InlineLinkTarget::borrowed( + ev_name, + target_path.to_path_buf(), + )); } } ParseSource::Error(err) => { diff --git a/crates/evm/evm/src/executors/invariant/mod.rs b/crates/evm/evm/src/executors/invariant/mod.rs index 8704ea0f3678..a3d5c4f924e3 100644 --- a/crates/evm/evm/src/executors/invariant/mod.rs +++ b/crates/evm/evm/src/executors/invariant/mod.rs @@ -338,7 +338,9 @@ impl<'a> InvariantExecutor<'a> { invariant_test.set_error(InvariantFuzzError::MaxAssumeRejects( self.config.max_assume_rejects, )); - return Err(TestCaseError::fail("Max number of vm.assume rejects reached.")); + return Err(TestCaseError::fail( + "Max number of vm.assume rejects reached.", + )); } } else { // Collect data for fuzzing from the state changeset.