Integration: #565 collapse the nested if in rtf_to_outline (clippy)

This commit is contained in:
aiongg
2026-10-24 06:29:33 +00:00
parent 36cd258bd2
commit 7c1ae73ead
+4 -4
View File
@@ -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);
}
}
}