style: Update serde_with to 3.0.0

We upgrade enumset alongside so that we keep only one copy of darling.

Differential Revision: https://phabricator.services.mozilla.com/D179651
This commit is contained in:
Mike Hommey 2023-06-05 20:28:30 +00:00 committed by Martin Robinson
parent e1b6632313
commit 39bc94a4f7
5 changed files with 10 additions and 10 deletions

View file

@ -13,5 +13,5 @@ path = "lib.rs"
darling = { workspace = true }
proc-macro2 = { workspace = true }
quote = { workspace = true }
syn = { version = "1", default-features = false, features = ["clone-impls", "derive", "parsing"] }
synstructure = "0.12"
syn = { version = "2", default-features = false, features = ["clone-impls", "derive", "parsing"] }
synstructure = "0.13"

View file

@ -6,7 +6,7 @@ use darling::{FromDeriveInput, FromField, FromVariant};
use proc_macro2::{Span, TokenStream};
use quote::{quote, TokenStreamExt};
use syn::{
self, parse_quote, AngleBracketedGenericArguments, Binding, DeriveInput, Field,
self, parse_quote, AngleBracketedGenericArguments, AssocType, DeriveInput, Field,
GenericArgument, GenericParam, Ident, Path, PathArguments, PathSegment, QSelf, Type, TypeArray,
TypeGroup, TypeParam, TypeParen, TypePath, TypeSlice, TypeTuple, Variant, WherePredicate,
};
@ -252,8 +252,8 @@ where
&GenericArgument::Type(ref data) => GenericArgument::Type(
map_type_params(data, params, self_type, f),
),
&GenericArgument::Binding(ref data) => {
GenericArgument::Binding(Binding {
&GenericArgument::AssocType(ref data) => {
GenericArgument::AssocType(AssocType {
ty: map_type_params(&data.ty, params, self_type, f),
..data.clone()
})

View file

@ -15,5 +15,5 @@ darling = { workspace = true, default-features = false }
derive_common = { path = "../derive_common" }
proc-macro2 = "1"
quote = "1"
syn = { version = "1", default-features = false, features = ["clone-impls", "derive", "parsing"] }
synstructure = "0.12"
syn = { version = "2", default-features = false, features = ["clone-impls", "derive", "parsing"] }
synstructure = "0.13"

View file

@ -15,5 +15,5 @@ darling = { workspace = true }
derive_common = { path = "../derive_common" }
proc-macro2 = { workspace = true }
quote = { workspace = true }
syn = { version = "1", default-features = false, features = ["clone-impls", "derive", "parsing"] }
synstructure = "0.12"
syn = { version = "2", default-features = false, features = ["clone-impls", "derive", "parsing"] }
synstructure = "0.13"