Skip to content

Commit

Permalink
Touch up PR 217
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Apr 11, 2022
1 parent 2d23d9d commit b5160b1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)*);
Expand Down Expand Up @@ -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
}};
Expand All @@ -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;
Expand Down

0 comments on commit b5160b1

Please sign in to comment.