Run clippy --fix for unnecessary_map_or lint
This commit is contained in:
@@ -2095,7 +2095,7 @@ impl<'a> Parser<'a> {
|
||||
// point literal here, since there's no use of the exponent
|
||||
// syntax that also constitutes a valid integer, so we need
|
||||
// not check for that.
|
||||
if suffix.map_or(true, |s| s == sym::f32 || s == sym::f64)
|
||||
if suffix.is_none_or(|s| s == sym::f32 || s == sym::f64)
|
||||
&& symbol.as_str().chars().all(|c| c.is_numeric() || c == '_')
|
||||
&& self.token.span.hi() == next_token.span.lo()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user