We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2f41867 commit 27fb4ecCopy full SHA for 27fb4ec
lightning-macros/src/lib.rs
@@ -283,7 +283,7 @@ pub fn drop_legacy_field_definition(expr: TokenStream) -> TokenStream {
283
if let Some(proc_macro2::TokenTree::Group(group)) = ty_tokens {
284
let first_token = group.stream().into_iter().next();
285
if let Some(proc_macro2::TokenTree::Ident(ident)) = first_token {
286
- if is_init && ident.to_string() == "legacy" {
+ if is_init && ident == "legacy" {
287
continue;
288
}
289
0 commit comments