We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 998914f commit 1a23527Copy full SHA for 1a23527
src/libsyntax/parse/parser.rs
@@ -3304,13 +3304,13 @@ impl<'a> Parser<'a> {
3304
pat = PatEnum(path, Some(args));
3305
}
3306
3307
- _ if qself.is_some() => {
3308
- // Parse qualified path
3309
- pat = PatQPath(qself.unwrap(), path);
3310
- }
3311
_ => {
3312
- // Parse nullary enum
3313
- pat = PatEnum(path, Some(vec![]));
+ pat = match qself {
+ // Parse qualified path
+ Some(qself) => PatQPath(qself, path),
+ // Parse nullary enum
+ None => PatEnum(path, Some(vec![]))
+ };
3314
3315
3316
0 commit comments