We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 75192f7 commit da0b860Copy full SHA for da0b860
crates/ra_parser/src/grammar/patterns.rs
@@ -58,9 +58,8 @@ const PAT_RECOVERY_SET: TokenSet =
58
fn atom_pat(p: &mut Parser, recovery_set: TokenSet) -> Option<CompletedMarker> {
59
// Checks the token after an IDENT to see if a pattern is a path (Struct { .. }) or macro
60
// (T![x]).
61
- let is_path_or_macro_pat = |la1| {
62
- la1 == T![::] || la1 == T!['('] || la1 == T!['{'] || la1 == T![!]
63
- };
+ let is_path_or_macro_pat =
+ |la1| la1 == T![::] || la1 == T!['('] || la1 == T!['{'] || la1 == T![!];
64
65
let m = match p.nth(0) {
66
T![box] => box_pat(p),
0 commit comments