From b5160b15126fc25df20125c85556a53a59e0eb3c Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Sun, 10 Apr 2022 21:01:28 -0700 Subject: [PATCH] Touch up PR 217 --- src/lib.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 293190a..917bbd5 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -494,7 +494,7 @@ macro_rules! quote { _s }}; - // Catch-all rule for all remaining inputs. + // Rule for any other number of tokens. ($($tt:tt)*) => {{ let mut _s = $crate::__private::TokenStream::new(); $crate::quote_each_token!(_s $($tt)*); @@ -616,7 +616,7 @@ macro_rules! quote_spanned { // Special case rules for two tts, for performance. ($span:expr=> # $var:ident) => {{ let mut _s = $crate::__private::TokenStream::new(); - let _span: $crate::__private::Span = $span; + let _: $crate::__private::Span = $span; $crate::ToTokens::to_tokens(&$var, &mut _s); _s }}; @@ -628,7 +628,7 @@ macro_rules! quote_spanned { _s }}; - // Catch-all rule for all remaining inputs. + // Rule for any other number of tokens. ($span:expr=> $($tt:tt)*) => {{ let mut _s = $crate::__private::TokenStream::new(); let _span: $crate::__private::Span = $span;