Skip to content

Commit

Permalink
Update syn to 2
Browse files Browse the repository at this point in the history
  • Loading branch information
jasl committed Aug 10, 2024
1 parent 2f1866d commit d12d55c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion rlp-derive/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ rust-version = "1.56.1"
proc-macro = true

[dependencies]
syn = "1.0.14"
syn = "2.0.72"
quote = "1.0.2"
proc-macro2 = "1.0.8"

Expand Down
2 changes: 1 addition & 1 deletion rlp-derive/src/de.rs
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ fn decodable_field(
let list = quotes.list;

let attributes = &field.attrs;
let default = if let Some(attr) = attributes.iter().find(|attr| attr.path.is_ident("rlp")) {
let default = if let Some(attr) = attributes.iter().find(|attr| attr.path().is_ident("rlp")) {
if *default_attribute_encountered {
panic!("only 1 #[rlp(default)] attribute is allowed in a struct")
}
Expand Down

0 comments on commit d12d55c

Please sign in to comment.