mirror of
https://github.com/hexedtech/jni-toolbox.git
synced 2024-11-22 23:44:57 +01:00
fix: ignore non snake case name
This commit is contained in:
parent
bc6fc73a50
commit
1775ea2adf
2 changed files with 3 additions and 2 deletions
|
@ -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"
|
||||||
|
|
|
@ -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
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue