We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f1e890f commit 9c38766Copy full SHA for 9c38766
jni-sys-macros/Cargo.toml
@@ -15,5 +15,5 @@ edition = "2021"
15
proc-macro = true
16
17
[dependencies]
18
-syn = { version = "1", features = ["full"] }
+syn = { version = "2", features = ["full"] }
19
quote = "1"
jni-sys-macros/src/lib.rs
@@ -75,7 +75,7 @@ fn jni_to_union_impl(input: DeriveInput) -> syn::Result<TokenStream> {
75
76
let mut jni_added_attr = None;
77
field.attrs.retain(|attr| {
78
- if attr.path.is_ident("jni_added") {
+ if attr.path().is_ident("jni_added") {
79
jni_added_attr = Some(attr.clone());
80
false
81
} else {
0 commit comments