From 25f3d12960f85c2222a69919935a975d93a1fd94 Mon Sep 17 00:00:00 2001 From: FredApps <153173854+FredApps@users.noreply.github.com> Date: Fri, 30 Oct 2026 12:54:56 +0100 Subject: [PATCH] style: format checked soft-wrap budget assignment --- crates/edit/src/text/interp.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/crates/edit/src/text/interp.rs b/crates/edit/src/text/interp.rs index af9a51f0dc..2b55e51ef8 100644 --- a/crates/edit/src/text/interp.rs +++ b/crates/edit/src/text/interp.rs @@ -810,10 +810,8 @@ pub(super) fn interpret( // The marker is untrusted and later expands into spaces during reflow. // Charge it to the same page-wide budget as glyph text, so many individually // small markers cannot multiply the allocation past the limit either. - carry.text_left = carry - .text_left - .checked_sub(soft_gap) - .ok_or_else(|| EditError::Invalid("the page's text is too large to read".into()))?; + carry.text_left = + carry.text_left.checked_sub(soft_gap).ok_or_else(|| EditError::Invalid("the page's text is too large to read".into()))?; } else if op.name(0) == Some(b"PCHard") { hard_break = true; soft_break = false;