mirror of
https://github.com/storytold/deckcraft.git
synced 2026-10-24 10:37:03 -06:00
Integration: #565 collapse the nested if in rtf_to_outline (clippy)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user