Skip to content

Commit ee20a31

Browse files
makes clippy happy
1 parent 699c6a0 commit ee20a31

File tree

1 file changed

+0
-17
lines changed
  • meilisearch-index-setting-macro/src

1 file changed

+0
-17
lines changed

meilisearch-index-setting-macro/src/lib.rs

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
use std::fmt::format;
2-
31
use convert_case::{Case, Casing};
42
use proc_macro2::Ident;
53
use quote::quote;
@@ -177,21 +175,6 @@ fn get_settings_token_for_list(
177175
}
178176
}
179177

180-
fn get_settings_token_for_string(
181-
field_name: &String,
182-
method_name: &str,
183-
) -> proc_macro2::TokenStream {
184-
let method_ident = Ident::new(method_name, proc_macro2::Span::call_site());
185-
186-
if field_name.is_empty() {
187-
proc_macro2::TokenStream::new()
188-
} else {
189-
quote! {
190-
.#method_ident(#field_name)
191-
}
192-
}
193-
}
194-
195178
fn get_settings_token_for_string_for_some_string(
196179
field_name: &String,
197180
method_name: &str,

0 commit comments

Comments
 (0)