Dogfood fixes to use bool::then_some

This commit is contained in:
Josh Triplett
2022-07-06 00:52:53 -07:00
parent ebff7206bc
commit b7230d4f44
16 changed files with 20 additions and 18 deletions

View File

@@ -553,7 +553,7 @@ fn replace_ident_like(contents: &str, replacements: &[(&str, &str)]) -> Option<S
pos = m.end();
}
result.push_str(&contents[pos..]);
edited.then(|| result)
edited.then_some(result)
}
fn round_to_fifty(count: usize) -> usize {