Format the intersect panel test as rustfmt lays it out

The chained lookup in the_intersect_button_joins_a_part_that_intersects was
one line past rustfmt's width, so fmt --check failed on the branch. Split
as rustfmt wants it; no behaviour changes.
This commit is contained in:
2026-09-24 21:25:48 -04:00
parent 5f0b7ac799
commit 8f3df7b68d
+6 -1
View File
@@ -1550,7 +1550,12 @@ mod tests {
let index = s.add_mask_part(&id, 2).expect("a part was joined"); let index = s.add_mask_part(&id, 2).expect("a part was joined");
let join = |s: &DevelopSession| { let join = |s: &DevelopSession| {
s.masks().get(&id).expect("layer").part(index).expect("part").join s.masks()
.get(&id)
.expect("layer")
.part(index)
.expect("part")
.join
}; };
assert_eq!(join(&s), Join::Intersect); assert_eq!(join(&s), Join::Intersect);
assert_eq!(s.mask_parts(&id)[index].2, 2, "the chip shows ∩"); assert_eq!(s.mask_parts(&id)[index].2, 2, "the chip shows ∩");