Replace some then
s with some then_some
s
This commit is contained in:
parent
8751fa1a9a
commit
5bf6a46032
24 changed files with 27 additions and 26 deletions
|
@ -870,7 +870,7 @@ impl<'a> Parser<'a> {
|
|||
None
|
||||
};
|
||||
|
||||
let maybe = self.eat(&token::Question).then(|| self.prev_token.span);
|
||||
let maybe = self.eat(&token::Question).then_some(self.prev_token.span);
|
||||
|
||||
Ok(BoundModifiers { maybe, maybe_const })
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue