clippy: Use if lets and remove redundant returns
This commit is contained in:
@@ -49,9 +49,8 @@ fn atom_pat(p: &mut Parser, recovery_set: TokenSet) -> Option<CompletedMarker> {
|
||||
// "hello" => (),
|
||||
// }
|
||||
// }
|
||||
match expressions::literal(p) {
|
||||
Some(m) => return Some(m),
|
||||
None => (),
|
||||
if let Some(m) = expressions::literal(p) {
|
||||
return Some(m);
|
||||
}
|
||||
|
||||
let m = match la0 {
|
||||
|
||||
Reference in New Issue
Block a user