Skip to content

Commit

Permalink
Remove unused variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Oyelowo committed Sep 9, 2023
1 parent b5b8c6e commit 839b311
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tw-macro/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down Expand Up @@ -146,7 +146,7 @@ fn setup(input: &LitStr) -> Result<(Vec<String>, Vec<String>), 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(']');
Expand Down

0 comments on commit 839b311

Please sign in to comment.