Skip to content
This repository has been archived by the owner on Oct 19, 2024. It is now read-only.

Commit

Permalink
chore(clippy): make clippy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsse committed Dec 30, 2021
1 parent e00bf5d commit 2ebcabe
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions ethers-solc/src/resolver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ impl Graph {
// library import
if let Some(node) = all_nodes.remove(&dep) {
sources.insert(node.path, node.source);
insert_imports(dep, all_nodes, sources, &edges, num_input_files);
insert_imports(dep, all_nodes, sources, edges, num_input_files);
}
}
}
Expand Down Expand Up @@ -328,9 +328,8 @@ impl Graph {
.iter()
.rev()
.find(|v| v.is_installed())
.or(candidates.iter().last())
.or_else(|| candidates.iter().last())
.unwrap()
.clone()
.clone();
versioned_nodes.entry(candidate).or_insert_with(|| Vec::with_capacity(1)).push(idx);
}
Expand Down

0 comments on commit 2ebcabe

Please sign in to comment.