diff options
Diffstat (limited to 'src/pin_project/attribute.rs')
-rw-r--r-- | src/pin_project/attribute.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pin_project/attribute.rs b/src/pin_project/attribute.rs index c8811cb..7adfc07 100644 --- a/src/pin_project/attribute.rs +++ b/src/pin_project/attribute.rs @@ -47,7 +47,7 @@ impl Parse for Input { let attrs = input.call(Attribute::parse_outer)?; let ahead = input.fork(); - let _: Visibility = ahead.parse()?; + let _vis: Visibility = ahead.parse()?; if !ahead.peek(Token![struct]) && !ahead.peek(Token![enum]) { // If we check this only on proc-macro-derive, it may generate unhelpful error // messages. So it is preferable to be able to detect it here. |