Color: format the mesh-point opacity test as rustfmt lays it out

This commit is contained in:
dotCooCoo
2026-11-14 05:51:39 -08:00
parent 5fba145353
commit 38a2019f8f
+8 -1
View File
@@ -380,7 +380,14 @@ mod tests {
assert_eq!(picked(&app), Some(vec![0]), "the click picks the top-left point");
assert_eq!(state(&app, &ctx).0.opacity, Some(30.0), "the newly picked point's opacity");
// An active Appearance row takes the opacity, so the values are the object's again.
let rows = app.session.active().unwrap().selection.objects.first().map(|id| app.session.active().unwrap().doc.node(*id).unwrap().appearance.items.len());
let rows = app
.session
.active()
.unwrap()
.selection
.objects
.first()
.map(|id| app.session.active().unwrap().doc.node(*id).unwrap().appearance.items.len());
assert!(rows.is_some_and(|n| n > 0), "the mesh has its stroke row");
run(&mut app, "appearance.setActiveItem", json!({"index": 0}));
assert_eq!(picked(&app), None);