fix: ignore non snake case name

This commit is contained in:
zaaarf 2024-10-10 01:24:06 +02:00
parent bc6fc73a50
commit 1775ea2adf
No known key found for this signature in database
GPG key ID: 102E445F4C3F829B
2 changed files with 3 additions and 2 deletions

View file

@ -3,7 +3,8 @@ name = "jni-toolbox-macro"
description = "proc macro to automate making JNI extern functions" description = "proc macro to automate making JNI extern functions"
repository = "https://github.com/hexedtech/jni-toolbox" repository = "https://github.com/hexedtech/jni-toolbox"
authors = [ authors = [
"alemi <me@alemi.dev>" "alemi <me@alemi.dev>",
"zaaarf <me@zaaarf.foo>"
] ]
license = "GPL-3.0-only" license = "GPL-3.0-only"
version = "0.2.1" version = "0.2.1"

View file

@ -32,7 +32,7 @@ pub(crate) fn generate_jni_wrapper(attrs: TokenStream, input: TokenStream) -> Re
// V----------------------------------V // V----------------------------------V
let header = quote::quote! { let header = quote::quote! {
#[no_mangle] #[no_mangle]
#[allow(unused_unit)] #[allow(unused_unit, non_snake_case)]
pub extern "system" fn #fn_name<'local>(#incoming) #return_type pub extern "system" fn #fn_name<'local>(#incoming) #return_type
}; };