Name the allow_plus args

This commit is contained in:
David Tolnay 2021-10-05 21:06:12 -04:00
parent 55e4a7351a
commit ac497516e5
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82

View File

@ -852,14 +852,16 @@ pub mod parsing {
#[cfg_attr(doc_cfg, doc(cfg(feature = "parsing")))]
impl Parse for ReturnType {
fn parse(input: ParseStream) -> Result<Self> {
Self::parse(input, true)
let allow_plus = true;
Self::parse(input, allow_plus)
}
}
#[cfg_attr(doc_cfg, doc(cfg(feature = "parsing")))]
impl Parse for TypeTraitObject {
fn parse(input: ParseStream) -> Result<Self> {
Self::parse(input, true)
let allow_plus = true;
Self::parse(input, allow_plus)
}
}