From 80e5506456f4fc38b0c100b4a2cd88364b72ce5d Mon Sep 17 00:00:00 2001 From: aiongg Date: Sat, 24 Oct 2026 06:25:28 +0000 Subject: [PATCH] Integration: cargo fmt --- crates/format/src/rtf.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/crates/format/src/rtf.rs b/crates/format/src/rtf.rs index 5894cd23..ad5f9906 100644 --- a/crates/format/src/rtf.rs +++ b/crates/format/src/rtf.rs @@ -109,11 +109,7 @@ const SKIP: &[&str] = &[ /// `i + n`, or one character on when that would land inside a multi-byte character (a fallback /// run after `\uN` or `\'hh` may be followed by non-ASCII text). fn advance(rtf: &str, i: usize, n: usize) -> usize { - if rtf.is_char_boundary(i + n) { - i + n - } else { - i + rtf.get(i..).and_then(|r| r.chars().next()).map_or(1, char::len_utf8) - } + if rtf.is_char_boundary(i + n) { i + n } else { i + rtf.get(i..).and_then(|r| r.chars().next()).map_or(1, char::len_utf8) } } /// Read an RTF outline into tab-indented outline text: a paragraph's outline level (or its left