We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2f1866d commit 701148eCopy full SHA for 701148e
rlp-derive/Cargo.toml
@@ -12,7 +12,7 @@ rust-version = "1.56.1"
12
proc-macro = true
13
14
[dependencies]
15
-syn = "1.0.14"
+syn = "2.0.72"
16
quote = "1.0.2"
17
proc-macro2 = "1.0.8"
18
rlp-derive/src/de.rs
@@ -121,7 +121,7 @@ fn decodable_field(
121
let list = quotes.list;
122
123
let attributes = &field.attrs;
124
- 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")) {
125
if *default_attribute_encountered {
126
panic!("only 1 #[rlp(default)] attribute is allowed in a struct")
127
}
0 commit comments