From 7c1ae73eadf526816e34d6cdf1c82daeefc85382 Mon Sep 17 00:00:00 2001 From: aiongg Date: Sat, 24 Oct 2026 06:29:33 +0000 Subject: [PATCH] Integration: #565 collapse the nested if in rtf_to_outline (clippy) --- crates/format/src/rtf.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/crates/format/src/rtf.rs b/crates/format/src/rtf.rs index ad5f9906..d122fcfd 100644 --- a/crates/format/src/rtf.rs +++ b/crates/format/src/rtf.rs @@ -249,10 +249,10 @@ pub fn rtf_to_outline(rtf: &str) -> String { while i < b.len() && !matches!(b[i], b'{' | b'}' | b'\\' | b'\r' | b'\n') { i += 1; } - if !st.skip { - if let Some(t) = rtf.get(s..i) { - line.push_str(t); - } + if !st.skip + && let Some(t) = rtf.get(s..i) + { + line.push_str(t); } } }