mirror of
https://github.com/bytedream/serde-inline-default.git
synced 2025-05-09 20:25:13 +02:00
Suppress rust-analyzer's "Non Snake Case" warning for generated idents (#5)
This commit is contained in:
parent
7130dc8927
commit
c020a6e0e4
@ -27,6 +27,7 @@ pub(crate) fn expand_struct(mut item: ItemStruct) -> proc_macro::TokenStream {
|
|||||||
|
|
||||||
let inline_fn = quote! {
|
let inline_fn = quote! {
|
||||||
#[doc(hidden)]
|
#[doc(hidden)]
|
||||||
|
#[allow(non_snake_case)]
|
||||||
fn #fn_name_ident () -> #return_type {
|
fn #fn_name_ident () -> #return_type {
|
||||||
#default
|
#default
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user