Skip to content

Commit 701148e

Browse files
authored
Update syn to 2 (#855)
1 parent 2f1866d commit 701148e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

rlp-derive/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ rust-version = "1.56.1"
1212
proc-macro = true
1313

1414
[dependencies]
15-
syn = "1.0.14"
15+
syn = "2.0.72"
1616
quote = "1.0.2"
1717
proc-macro2 = "1.0.8"
1818

rlp-derive/src/de.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ fn decodable_field(
121121
let list = quotes.list;
122122

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

0 commit comments

Comments
 (0)