diff --git a/crates/doc/src/vector_radius_tests.rs b/crates/doc/src/vector_radius_tests.rs index d892669db..b48414a76 100644 --- a/crates/doc/src/vector_radius_tests.rs +++ b/crates/doc/src/vector_radius_tests.rs @@ -48,7 +48,10 @@ fn assert_arcs(path: &BezPath, want: &[(Point, Point, Point, f64)], why: &str) { // Two arcs can share both ends (opposite corners of a square), so the middle picks one. let ends = |c: &&CubicBez| (near(c.p0, a) && near(c.p3, b)) || (near(c.p0, b) && near(c.p3, a)); let passing: Vec = got.iter().filter(ends).map(|c| c.eval(0.5)).collect(); - assert!(passing.iter().any(|&m| near(m, mid)), "{why}: no arc at {corner:?} from {a:?} to {b:?} through {mid:?}; arcs between them pass {passing:?}"); + assert!( + passing.iter().any(|&m| near(m, mid)), + "{why}: no arc at {corner:?} from {a:?} to {b:?} through {mid:?}; arcs between them pass {passing:?}" + ); } }