Skip to content

Commit f6925cc

Browse files
grandizzyMerkleBoy
authored andcommitted
chore: fix clippy (foundry-rs#11361)
1 parent 7dc6f7f commit f6925cc

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)