From df7c35a57aa215ba19dbd0560b366a0057d7cc4a Mon Sep 17 00:00:00 2001 From: Shaun Jackman Date: Tue, 17 Oct 2023 17:47:37 -0700 Subject: [PATCH] build(deps): Bump syn to 2 and darling to 0.20 - Bump syn from 1 to 2 - Bump darling from 0.14 to 0.20 --- plotly_derive/Cargo.toml | 8 ++++---- plotly_derive/src/field_setter.rs | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/plotly_derive/Cargo.toml b/plotly_derive/Cargo.toml index 34be9693..809347b3 100644 --- a/plotly_derive/Cargo.toml +++ b/plotly_derive/Cargo.toml @@ -11,10 +11,10 @@ edition = "2018" keywords = ["plot", "chart", "plotly"] [dependencies] -quote = "1.0" -syn = "1.0" -proc-macro2 = "1.0" -darling = "0.14.1" +quote = "1" +syn = "2" +proc-macro2 = "1" +darling = "0.20" [lib] proc-macro = true diff --git a/plotly_derive/src/field_setter.rs b/plotly_derive/src/field_setter.rs index a1642989..f330be21 100644 --- a/plotly_derive/src/field_setter.rs +++ b/plotly_derive/src/field_setter.rs @@ -492,7 +492,7 @@ impl FieldReceiver { self.attrs .iter() .filter(|attr| { - attr.path + attr.path() .segments .first() .map_or(false, |p| p.ident == name)