Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update syn to 2 #855

Merged
merged 1 commit into from
Aug 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading