Skip to content

Commit 1775ea2

Browse files
committed
fix: ignore non snake case name
1 parent bc6fc73 commit 1775ea2

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

macro/Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ name = "jni-toolbox-macro"
33
description = "proc macro to automate making JNI extern functions"
44
repository = "https://github.com/hexedtech/jni-toolbox"
55
authors = [
6-
"alemi <me@alemi.dev>"
6+
"alemi <me@alemi.dev>",
7+
"zaaarf <me@zaaarf.foo>"
78
]
89
license = "GPL-3.0-only"
910
version = "0.2.1"

macro/src/wrapper.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ pub(crate) fn generate_jni_wrapper(attrs: TokenStream, input: TokenStream) -> Re
3232
// V----------------------------------V
3333
let header = quote::quote! {
3434
#[no_mangle]
35-
#[allow(unused_unit)]
35+
#[allow(unused_unit, non_snake_case)]
3636
pub extern "system" fn #fn_name<'local>(#incoming) #return_type
3737
};
3838

0 commit comments

Comments
 (0)