diff --git a/Cargo.lock b/Cargo.lock index a74afaf13..888a742f3 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1141,7 +1141,7 @@ dependencies = [ "proc-macro2", "quote", "serde", - "syn 1.0.109", + "syn 2.0.10", ] [[package]] @@ -3095,7 +3095,7 @@ checksum = "e801c1712f48475582b7696ac71e0ca34ebb30e09338425384269d9717c62cad" dependencies = [ "proc-macro2", "quote", - "syn 2.0.3", + "syn 2.0.10", ] [[package]] @@ -3357,9 +3357,9 @@ dependencies = [ [[package]] name = "syn" -version = "2.0.3" +version = "2.0.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e8234ae35e70582bfa0f1fedffa6daa248e41dd045310b19800c4a36382c8f60" +checksum = "5aad1363ed6d37b84299588d62d3a7d95b5a5c2d9aad5c85609fda12afaa1f40" dependencies = [ "proc-macro2", "quote", @@ -3412,7 +3412,7 @@ checksum = "f9456a42c5b0d803c8cd86e73dd7cc9edd429499f37a3550d286d5e86720569f" dependencies = [ "proc-macro2", "quote", - "syn 2.0.3", + "syn 2.0.10", ] [[package]] diff --git a/crates/fj-proc/Cargo.toml b/crates/fj-proc/Cargo.toml index 1bb116539..4d97e5908 100644 --- a/crates/fj-proc/Cargo.toml +++ b/crates/fj-proc/Cargo.toml @@ -22,5 +22,5 @@ version = "1.0.158" optional = true [dependencies.syn] -version = "1.0.109" +version = "2.0.10" features = ["full", "extra-traits"] diff --git a/crates/fj-proc/src/lib.rs b/crates/fj-proc/src/lib.rs index 9c43aec92..2ee7e85db 100644 --- a/crates/fj-proc/src/lib.rs +++ b/crates/fj-proc/src/lib.rs @@ -124,7 +124,7 @@ fn without_param_attrs(mut item: ItemFn) -> ItemFn { FnArg::Receiver(r) => &mut r.attrs, FnArg::Typed(t) => &mut t.attrs, }; - attrs.retain(|attr| !attr.path.is_ident("param")); + attrs.retain(|attr| !attr.path().is_ident("param")); } item