Skip to content

Commit 56e9c8d

Browse files
authored
clippy
1 parent d025e62 commit 56e9c8d

File tree

1 file changed

+9
-12
lines changed

1 file changed

+9
-12
lines changed

crates/linking/src/lib.rs

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -742,19 +742,16 @@ mod tests {
742742
});
743743
assert!(artifact_exists, "Expected UsesBoth artifact to be compiled");
744744

745-
// Seed empty expectations for all artifacts in this folder to avoid unexpected-ids.
746-
let mut linker = linker.output.artifact_ids().fold(linker, |acc, (id, _)| {
747-
let source = id
748-
.source
749-
.strip_prefix(acc.project.root())
750-
.unwrap_or(&id.source)
751-
.to_string_lossy()
752-
.into_owned();
753-
let identifier = format!("{source}:{}", id.name);
754-
acc.assert_dependencies(identifier, vec![])
755-
});
756-
757745
linker
746+
// seed empty expectations for libraries in this folder to avoid unexpected-ids
747+
.assert_dependencies(
748+
"default/linking/samefile_union/Libs.sol:LInit".to_string(),
749+
vec![],
750+
)
751+
.assert_dependencies(
752+
"default/linking/samefile_union/Libs.sol:LRun".to_string(),
753+
vec![],
754+
)
758755
.assert_dependencies(
759756
"default/linking/samefile_union/SameFileUnion.t.sol:UsesBoth".to_string(),
760757
vec![

0 commit comments

Comments
 (0)