forked from 1b-agent/opencadstudio-upstream
style: apply cargo fmt across workspace
This commit is contained in:
1 parent
85710e5454
commit
9cf9ff2c5c
531 files changed
+57740
-33906
No files matched your search
+12
-14
@@ -948,20 +948,18 @@ impl OpenCADStudio {
|
||||
// Either direction can add/remove a layout: undoing
|
||||
// an insert removes it (`before` is `None`), redoing
|
||||
// re-inserts it — so both sides must be inspected.
|
||||
layout_touched |= matches!(
|
||||
entry.before,
|
||||
Some(codec::objects::ObjectType::Layout(_))
|
||||
) || matches!(
|
||||
entry.after,
|
||||
Some(codec::objects::ObjectType::Layout(_))
|
||||
);
|
||||
scale_touched |= matches!(
|
||||
entry.before,
|
||||
Some(codec::objects::ObjectType::Scale(_))
|
||||
) || matches!(
|
||||
entry.after,
|
||||
Some(codec::objects::ObjectType::Scale(_))
|
||||
);
|
||||
layout_touched |=
|
||||
matches!(entry.before, Some(codec::objects::ObjectType::Layout(_)))
|
||||
|| matches!(
|
||||
entry.after,
|
||||
Some(codec::objects::ObjectType::Layout(_))
|
||||
);
|
||||
scale_touched |=
|
||||
matches!(entry.before, Some(codec::objects::ObjectType::Scale(_)))
|
||||
|| matches!(
|
||||
entry.after,
|
||||
Some(codec::objects::ObjectType::Scale(_))
|
||||
);
|
||||
if let Some(object) = value {
|
||||
self.tabs[i]
|
||||
.scene
|
||||
|
||||
Reference in new issue
Block a user