Skip to content

Commit 554024c

Browse files
authored
fmt
1 parent 3d1a174 commit 554024c

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

crates/linking/src/lib.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -732,14 +732,14 @@ mod tests {
732732
fn link_samefile_union() {
733733
link_test("../../testdata/default/linking/samefile_union", |linker| {
734734
// fail fast if the artifact is missing (prevents false positives)
735-
let artifact_exists = linker
736-
.output
737-
.artifact_ids()
738-
.any(|(id, _)| {
739-
let source = id.source.strip_prefix(linker.project.root()).unwrap_or(&id.source);
740-
id.name == "UsesBoth" &&
741-
source == std::path::Path::new("default/linking/samefile_union/SameFileUnion.t.sol")
742-
});
735+
let artifact_exists = linker.output.artifact_ids().any(|(id, _)| {
736+
let source = id.source.strip_prefix(linker.project.root()).unwrap_or(&id.source);
737+
id.name == "UsesBoth"
738+
&& source
739+
== std::path::Path::new(
740+
"default/linking/samefile_union/SameFileUnion.t.sol",
741+
)
742+
});
743743
assert!(artifact_exists, "Expected UsesBoth artifact to be compiled");
744744

745745
linker

0 commit comments

Comments
 (0)