Fix unused parentheses warning.

This commit is contained in:
Camille GILLOT 2020-04-02 10:13:38 +02:00
parent 143b8816a3
commit 0a010b33ff

View File

@ -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)