Replace some thens with some then_somes

This commit is contained in:
Maybe Waffle
2023-02-15 17:39:43 +00:00
parent 8751fa1a9a
commit 5bf6a46032
24 changed files with 27 additions and 26 deletions

View File

@@ -271,7 +271,7 @@ impl<'a> AstValidator<'a> {
self.session.emit_err(InvalidVisibility {
span: vis.span,
implied: vis.kind.is_pub().then(|| vis.span),
implied: vis.kind.is_pub().then_some(vis.span),
note,
});
}