Skip to content

Commit

Permalink
Merge pull request #6 from flashbots/rebase/2024-july
Browse files Browse the repository at this point in the history
lint again
  • Loading branch information
zeroXbrock committed Jul 17, 2024
2 parents 81c6853 + e5a5109 commit 14b36ad
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
9 changes: 7 additions & 2 deletions crates/anvil/src/eth/backend/mem/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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?);
}
}

Expand Down Expand Up @@ -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)
Expand Down
5 changes: 4 additions & 1 deletion crates/doc/src/preprocessor/infer_hyperlinks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down
4 changes: 3 additions & 1 deletion crates/evm/evm/src/executors/invariant/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 14b36ad

Please sign in to comment.