Skip to content

Commit f887514

Browse files
authored
chore: fix clippy (#11361)
1 parent 129bea5 commit f887514

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/common/src/contracts.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ impl ContractsByArtifact {
333333
pub fn find_abi_by_name_or_src_path(&self, name_or_path: &str) -> Option<(JsonAbi, String)> {
334334
self.iter()
335335
.find(|(artifact, _)| {
336-
artifact.name == name_or_path || artifact.source == PathBuf::from(name_or_path)
336+
artifact.name == name_or_path || artifact.source == Path::new(name_or_path)
337337
})
338338
.map(|(_, contract)| (contract.abi.clone(), contract.name.clone()))
339339
}

0 commit comments

Comments
 (0)