From c77340a4c6869690ad7b40069e8ca1cb90e4abb8 Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Thu, 22 Aug 2024 15:02:47 -0700 Subject: [PATCH] Consistently use 'tokens' as the name of the &mut TokenStream arg --- src/to_tokens.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/to_tokens.rs b/src/to_tokens.rs index bbb8696..e29bb6b 100644 --- a/src/to_tokens.rs +++ b/src/to_tokens.rs @@ -189,14 +189,14 @@ impl ToTokens for Literal { } impl ToTokens for TokenTree { - fn to_tokens(&self, dst: &mut TokenStream) { - dst.append(self.clone()); + fn to_tokens(&self, tokens: &mut TokenStream) { + tokens.append(self.clone()); } } impl ToTokens for TokenStream { - fn to_tokens(&self, dst: &mut TokenStream) { - dst.extend(iter::once(self.clone())); + fn to_tokens(&self, tokens: &mut TokenStream) { + tokens.extend(iter::once(self.clone())); } fn into_token_stream(self) -> TokenStream {