Skip to content

Commit 0a010b3

Browse files
committed
Fix unused parentheses warning.
1 parent 143b881 commit 0a010b3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/librustc_macros/src/query.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,9 @@ impl Parse for QueryModifier {
107107
let block = input.parse()?;
108108
Ok(QueryModifier::LoadCached(tcx, id, block))
109109
} else if modifier == "storage" {
110-
let ty = input.parse()?;
110+
let args;
111+
parenthesized!(args in input);
112+
let ty = args.parse()?;
111113
Ok(QueryModifier::Storage(ty))
112114
} else if modifier == "fatal_cycle" {
113115
Ok(QueryModifier::FatalCycle)

0 commit comments

Comments
 (0)