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)