Skip to content

Commit df7fded

Browse files
committed
deps: move to syn v2
1 parent b93ba46 commit df7fded

File tree

3 files changed

+4
-15
lines changed

3 files changed

+4
-15
lines changed

Cargo.lock

Lines changed: 2 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ keywords = ["enum", "conversion", "macros", "protocol"]
1313
proc-macro-crate = "3.1.0"
1414
proc-macro2 = "1.0"
1515
quote = "1.0"
16-
syn = { version = "1.0", features = ["full"] }
16+
syn = { version = "2.0", features = ["full"] }
1717

1818
[lib]
1919
proc-macro = true

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ struct EnumConversionsArgs {
155155
impl Parse for EnumConversionsArgs {
156156
fn parse(input: ParseStream) -> syn::Result<Self> {
157157
Ok(EnumConversionsArgs {
158-
target_types: Punctuated::parse_terminated(input)?,
158+
target_types: input.parse_terminated(Type::parse, Token![,])?,
159159
})
160160
}
161161
}

0 commit comments

Comments
 (0)