Skip to content

Commit 27fb4ec

Browse files
committed
f excess call
1 parent 2f41867 commit 27fb4ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lightning-macros/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ pub fn drop_legacy_field_definition(expr: TokenStream) -> TokenStream {
283283
if let Some(proc_macro2::TokenTree::Group(group)) = ty_tokens {
284284
let first_token = group.stream().into_iter().next();
285285
if let Some(proc_macro2::TokenTree::Ident(ident)) = first_token {
286-
if is_init && ident.to_string() == "legacy" {
286+
if is_init && ident == "legacy" {
287287
continue;
288288
}
289289
}

0 commit comments

Comments
 (0)