Skip to content

Commit

Permalink
chore: remove outdated clippy (#6614)
Browse files Browse the repository at this point in the history
* chore: remove outdated clippy

* chore: rm weird match
  • Loading branch information
mattsse authored Dec 17, 2023
1 parent 9888a7a commit 477b345
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 11 deletions.
1 change: 0 additions & 1 deletion crates/common/src/runtime_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,6 @@ fn url_to_file_path(url: &Url) -> Result<PathBuf, ()> {
impl JsonRpcClient for RuntimeClient {
type Error = RuntimeClientError;

#[allow(implied_bounds_entailment)]
async fn request<T, R>(&self, method: &str, params: T) -> Result<R, Self::Error>
where
T: Debug + Serialize + Send + Sync,
Expand Down
14 changes: 4 additions & 10 deletions crates/evm/core/src/fork/backend.rs
Original file line number Diff line number Diff line change
Expand Up @@ -661,16 +661,13 @@ impl DatabaseRef for SharedBackend {

fn storage_ref(&self, address: Address, index: U256) -> Result<U256, Self::Error> {
trace!(target: "sharedbackend", "request storage {:?} at {:?}", address, index);
match self.do_get_storage(address, index).map_err(|err| {
self.do_get_storage(address, index).map_err(|err| {
error!(target: "sharedbackend", %err, %address, %index, "Failed to send/recv `storage`");
if err.is_possibly_non_archive_node_error() {
error!(target: "sharedbackend", "{NON_ARCHIVE_NODE_WARNING}");
}
err
}) {
Ok(val) => Ok(val),
Err(err) => Err(err),
}
})
}

fn block_hash_ref(&self, number: U256) -> Result<B256, Self::Error> {
Expand All @@ -680,16 +677,13 @@ impl DatabaseRef for SharedBackend {
let number: U256 = number;
let number = number.to();
trace!(target: "sharedbackend", "request block hash for number {:?}", number);
match self.do_get_block_hash(number).map_err(|err| {
self.do_get_block_hash(number).map_err(|err| {
error!(target: "sharedbackend", %err, %number, "Failed to send/recv `block_hash`");
if err.is_possibly_non_archive_node_error() {
error!(target: "sharedbackend", "{NON_ARCHIVE_NODE_WARNING}");
}
err
}) {
Ok(val) => Ok(val),
Err(err) => Err(err),
}
})
}
}

Expand Down

0 comments on commit 477b345

Please sign in to comment.