From 5fafff5eaff296670ac8accae5f7b18c29f6b13e Mon Sep 17 00:00:00 2001 From: Harald Date: Mon, 19 Oct 2026 17:19:10 +0200 Subject: [PATCH] style: cargo fmt Co-Authored-By: Claude Opus 5.5 --- src/document.rs | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/document.rs b/src/document.rs index acdb2d2..b290f4d 100644 --- a/src/document.rs +++ b/src/document.rs @@ -616,12 +616,13 @@ impl Stroke { pub fn recompute_aabb(&mut self) { // Ohne Zwischenliste: läuft beim Ziehen einer Auswahl für jeden Strich und jede Bewegung let bounds = |mut pts: Box + '_>| { - pts.next().map_or(Aabb::new(glam::Vec2::ZERO, glam::Vec2::ZERO), |first| { - pts.fold(Aabb::new(first, first), |mut aabb, p| { - aabb.expand_by_point(p); - aabb + pts.next() + .map_or(Aabb::new(glam::Vec2::ZERO, glam::Vec2::ZERO), |first| { + pts.fold(Aabb::new(first, first), |mut aabb, p| { + aabb.expand_by_point(p); + aabb + }) }) - }) }; self.aabb = if !self.points.is_empty() { bounds(Box::new(self.points.iter().map(|s| s.position)))