commit | 66cb0c4381b0faaf1cf00f486f079338366461d5 | [log] [tgz] |
---|---|---|
author | David Tolnay <dtolnay@gmail.com> | Fri Aug 31 09:01:30 2018 -0700 |
committer | David Tolnay <dtolnay@gmail.com> | Fri Aug 31 09:09:24 2018 -0700 |
tree | 892302168d9c6c3e5c013f4e90597278e6f290da | |
parent | 78612675c2f64fcd31019242e98fb1c7eed0aeae [diff] [blame] |
Lifetimes as single tokens from cursor
diff --git a/src/path.rs b/src/path.rs index 3c4ce07..2dafac8 100644 --- a/src/path.rs +++ b/src/path.rs
@@ -241,7 +241,7 @@ impl Parse for GenericArgument { fn parse(input: ParseStream) -> Result<Self> { - if input.peek(Lifetime) && !input.peek3(Token![+]) { + if input.peek(Lifetime) && !input.peek2(Token![+]) { return Ok(GenericArgument::Lifetime(input.parse()?)); }