Skip to content

Commit

Permalink
Update to syn 2 (#2730)
Browse files Browse the repository at this point in the history
  • Loading branch information
maurer authored and taiki-e committed Mar 30, 2023
1 parent 98e80d4 commit 206b12b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion futures-macro/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ proc-macro = true
[dependencies]
proc-macro2 = "1.0"
quote = "1.0"
syn = { version = "1.0.56", features = ["full"] }
syn = { version = "2.0.8", features = ["full"] }
1 change: 1 addition & 0 deletions futures-macro/src/executor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ pub(crate) fn test(args: TokenStream, item: TokenStream) -> TokenStream {
#path::block_on(async #body)
})
.unwrap(),
None,
)];

let gen = quote! {
Expand Down
2 changes: 1 addition & 1 deletion futures-macro/src/select.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ impl Parse for Select {
CaseKind::Default
} else {
// `<pat> = <expr>`
let pat = input.parse()?;
let pat = Pat::parse_multi_with_leading_vert(input)?;
input.parse::<Token![=]>()?;
let expr = input.parse()?;
CaseKind::Normal(pat, expr)
Expand Down

0 comments on commit 206b12b

Please sign in to comment.