Skip to content

Commit

Permalink
Fix unused parentheses warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
cjgillot committed Apr 28, 2020
1 parent 143b881 commit 0a010b3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/librustc_macros/src/query.rs
Expand Up @@ -107,7 +107,9 @@ impl Parse for QueryModifier {
let block = input.parse()?;
Ok(QueryModifier::LoadCached(tcx, id, block))
} else if modifier == "storage" {
let ty = input.parse()?;
let args;
parenthesized!(args in input);
let ty = args.parse()?;
Ok(QueryModifier::Storage(ty))
} else if modifier == "fatal_cycle" {
Ok(QueryModifier::FatalCycle)
Expand Down

0 comments on commit 0a010b3

Please sign in to comment.