DesignCraft: An open-source page and layout design editor written by scratch in pure Rust
fix clippy (sections)
Brandon Thomas7b35e648b37f
diff --git a/crates/engine/src/cmd/layout.rs b/crates/engine/src/cmd/layout.rsindex 678cb4960..17857303f 100644--- a/crates/engine/src/cmd/layout.rs+++ b/crates/engine/src/cmd/layout.rs@@ -187,10 +187,8 @@ pub fn specs() -> Vec<CommandSpec> {let p = p.clone();s.edit(|d, _| {d.sections.retain(|x| x.start != start || start == 0);- if p.get("remove").and_then(Value::as_bool).unwrap_or(false) {- if start != 0 {- return ok();- }+ if p.get("remove").and_then(Value::as_bool).unwrap_or(false) && start != 0 {+ return ok();}let mut sec = d.sections.iter().find(|x| x.start == start).cloned().unwrap_or(designcraft_doc::Section {start,