Suppress rust-analyzer's "Non Snake Case" warning for generated idents (#5)

This commit is contained in:
nullstalgia 2024-09-24 03:49:40 -07:00 committed by GitHub
parent 7130dc8927
commit c020a6e0e4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -27,6 +27,7 @@ pub(crate) fn expand_struct(mut item: ItemStruct) -> proc_macro::TokenStream {
let inline_fn = quote! {
#[doc(hidden)]
#[allow(non_snake_case)]
fn #fn_name_ident () -> #return_type {
#default
}