Skip to content

Commit f84de88

Browse files
committed
Appease Clippy
1 parent 9b7d62d commit f84de88

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/tool/subcommands/api_cmd/test_snapshot.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,14 +53,14 @@ fn backfill_eth_mappings(db: &MemoryDB, index: Option<Index>) -> anyhow::Result<
5353
if let Some(index) = index {
5454
if let Some(mut guard) = db.eth_mappings_db.try_write() {
5555
for (k, v) in index.eth_mappings.iter() {
56-
if let Ok(hash) = EthHash::from_str(&k) {
56+
if let Ok(hash) = EthHash::from_str(k) {
5757
guard.insert(hash, v.0.clone());
5858
}
5959
}
6060
}
6161
if let Some(mut guard) = db.indices_db.try_write() {
6262
for (k, v) in index.eth_mappings.iter() {
63-
if let Ok(cid) = Cid::from_str(&k) {
63+
if let Ok(cid) = Cid::from_str(k) {
6464
guard.insert(cid, v.0.clone());
6565
}
6666
}

0 commit comments

Comments
 (0)