DesignCraft: An open-source page and layout design editor written by scratch in pure Rust
Integration: format
aiongg3719470140e4
diff --git a/apps/designcraft/src/profile.rs b/apps/designcraft/src/profile.rsindex ed52597c9..1450e5077 100644--- a/apps/designcraft/src/profile.rs+++ b/apps/designcraft/src/profile.rs@@ -85,7 +85,8 @@ fn executable_dir() -> Option<PathBuf> {}pub fn recovery_dir() -> Option<PathBuf> {- recovery_dir_with(root_with(|key| std::env::var_os(key), executable_dir().as_deref()), designcraft_engine::recovery::default_dir).and_then(own_run)+ recovery_dir_with(root_with(|key| std::env::var_os(key), executable_dir().as_deref()), designcraft_engine::recovery::default_dir)+ .and_then(own_run)}/// This run's folder in the recovery folder `root`. A second running DesignCraft has its own, sodiff --git a/crates/compose/src/lib.rs b/crates/compose/src/lib.rsindex f17ec0ac5..49a9a05f3 100644--- a/crates/compose/src/lib.rs+++ b/crates/compose/src/lib.rs@@ -2860,8 +2860,7 @@ fn wrap_slot(}} else {// Segments before the first that `holds` the line's first word stay empty.- let segs: Vec<(f64, f64)> =- free_slots(f, col, b - asc, b, size, rtl, line_start).into_iter().skip_while(|seg| !holds(seg)).collect();+ let segs: Vec<(f64, f64)> = free_slots(f, col, b - asc, b, size, rtl, line_start).into_iter().skip_while(|seg| !holds(seg)).collect();if !segs.is_empty() {return Some((b, segs));}