Skip to content

Commit 9c38766

Browse files
rukairib
authored andcommitted
Update syn
1 parent f1e890f commit 9c38766

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

jni-sys-macros/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@ edition = "2021"
1515
proc-macro = true
1616

1717
[dependencies]
18-
syn = { version = "1", features = ["full"] }
18+
syn = { version = "2", features = ["full"] }
1919
quote = "1"

jni-sys-macros/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ fn jni_to_union_impl(input: DeriveInput) -> syn::Result<TokenStream> {
7575

7676
let mut jni_added_attr = None;
7777
field.attrs.retain(|attr| {
78-
if attr.path.is_ident("jni_added") {
78+
if attr.path().is_ident("jni_added") {
7979
jni_added_attr = Some(attr.clone());
8080
false
8181
} else {

0 commit comments

Comments
 (0)