From 839b311a8dca82fe42e6c072a310e581b047ff65 Mon Sep 17 00:00:00 2001 From: oyelowo Date: Sat, 9 Sep 2023 12:27:44 -0600 Subject: [PATCH] Remove unused variable --- tw-macro/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tw-macro/src/lib.rs b/tw-macro/src/lib.rs index f976788..14ad67c 100644 --- a/tw-macro/src/lib.rs +++ b/tw-macro/src/lib.rs @@ -33,7 +33,7 @@ pub fn tw(raw_input: TokenStream) -> TokenStream { }; for word in input.value().split_whitespace() { - let (last_word_signed, last_word_unsigned) = get_last_word_types(word, &modifiers); + let (last_word_signed, last_word_unsigned) = get_last_word_types(word); // modifiers e.g hover: in // hover:[mask-type:alpha] @@ -146,7 +146,7 @@ fn setup(input: &LitStr) -> Result<(Vec, Vec), TokenStream> { Ok((modifiers, valid_class_names)) } -fn get_last_word_types<'a>(word: &'a str, modifiers: &'a [String]) -> (&'a str, &'a str) { +fn get_last_word_types<'a>(word: &'a str) -> (&'a str, &'a str) { let modifiers_and_class = word.split(':'); // let is_arbitrary_property = word.starts_with('[') && word.ends_with(']');