Skip to content

Commit

Permalink
Update deps (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelsproul authored Jul 8, 2024
1 parent 4ebca2f commit b710ad9
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
2 changes: 1 addition & 1 deletion ssz/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ ethereum_ssz_derive = { version = "0.5.4", path = "../ssz_derive" }
[dependencies]
ethereum-types = "0.14.1"
smallvec = { version = "1.6.1", features = ["const_generics"] }
itertools = "0.10.3"
itertools = "0.13.0"

[features]
arbitrary = ["ethereum-types/arbitrary"]
6 changes: 3 additions & 3 deletions ssz_derive/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ name = "ssz_derive"
proc-macro = true

[dependencies]
syn = "1.0.42"
syn = "2.0.69"
proc-macro2 = "1.0.23"
quote = "1.0.7"
darling = "0.13.0"
quote = "1.0.18"
darling = "0.20.9"

[dev-dependencies]
ethereum_ssz = { path = "../ssz" }
11 changes: 6 additions & 5 deletions ssz_derive/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,11 @@ fn parse_ssz_fields(
let field_opts_candidates = field
.attrs
.iter()
.filter(|attr| attr.path.get_ident().map_or(false, |ident| *ident == "ssz"))
.filter(|attr| {
attr.path()
.get_ident()
.map_or(false, |ident| *ident == "ssz")
})
.collect::<Vec<_>>();

if field_opts_candidates.len() > 1 {
Expand All @@ -297,10 +301,7 @@ fn parse_ssz_fields(

let field_opts = field_opts_candidates
.first()
.map(|attr| {
let meta = attr.parse_meta().unwrap();
FieldOpts::from_meta(&meta).unwrap()
})
.map(|attr| FieldOpts::from_meta(&attr.meta).unwrap())
.unwrap_or_default();

(ty, ident, field_opts)
Expand Down

0 comments on commit b710ad9

Please sign in to comment.