Skip to content

Commit

Permalink
makes clippy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
NoodleSamaChan committed Apr 21, 2024
1 parent 699c6a0 commit ee20a31
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions meilisearch-index-setting-macro/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
use std::fmt::format;

use convert_case::{Case, Casing};
use proc_macro2::Ident;
use quote::quote;
Expand Down Expand Up @@ -177,21 +175,6 @@ fn get_settings_token_for_list(
}
}

fn get_settings_token_for_string(
field_name: &String,
method_name: &str,
) -> proc_macro2::TokenStream {
let method_ident = Ident::new(method_name, proc_macro2::Span::call_site());

if field_name.is_empty() {
proc_macro2::TokenStream::new()
} else {
quote! {
.#method_ident(#field_name)
}
}
}

fn get_settings_token_for_string_for_some_string(
field_name: &String,
method_name: &str,
Expand Down

0 comments on commit ee20a31

Please sign in to comment.