From 9814d51c9b6613a9d8602f35f50ab5a4af144fee Mon Sep 17 00:00:00 2001 From: Eivind Fonn Date: Tue, 11 Jun 2024 12:31:45 +0200 Subject: [PATCH] Fix non-local impl warning --- gc_derive/Cargo.toml | 2 +- gc_derive/src/lib.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gc_derive/Cargo.toml b/gc_derive/Cargo.toml index 4e065e9..e1012fe 100644 --- a/gc_derive/Cargo.toml +++ b/gc_derive/Cargo.toml @@ -18,4 +18,4 @@ proc-macro = true syn = "1.0" proc-macro2 = "1.0" quote = "1.0" -synstructure = "0.12" +synstructure = "0.13" diff --git a/gc_derive/src/lib.rs b/gc_derive/src/lib.rs index f1227e2..6a31a65 100644 --- a/gc_derive/src/lib.rs +++ b/gc_derive/src/lib.rs @@ -8,7 +8,7 @@ fn derive_trace(mut s: Structure<'_>) -> proc_macro2::TokenStream { !bi.ast() .attrs .iter() - .any(|attr| attr.path.is_ident("unsafe_ignore_trace")) + .any(|attr| attr.path().is_ident("unsafe_ignore_trace")) }); let trace_body = s.each(|bi| quote!(mark(#bi)));