Drop the is_present utility method

This commit is contained in:
Aaron Fenyes 2025-03-03 12:31:30 -08:00
parent 309b0881df
commit c58fed073d
2 changed files with 1 additions and 8 deletions

View file

@ -269,7 +269,7 @@ impl Assembly {
console::log_1(&JsValue::from(
format!("Updated constraint with subjects ({}, {})", subjects.0, subjects.1)
));
if set_point.with(|set_pt| set_pt.is_present()) {
if set_point.with(|set_pt| matches!(set_pt, Present { .. })) {
self.realize();
}
});