Skip to content

Commit

Permalink
Upgrade syn to 2.0 (#499)
Browse files Browse the repository at this point in the history
  • Loading branch information
jplatte authored Aug 31, 2023
1 parent ecbd26a commit 9ef751b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion html5ever/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ criterion = "0.3"

[build-dependencies]
quote = "1"
syn = { version = "1", features = ["extra-traits", "full", "fold"] }
syn = { version = "2", features = ["extra-traits", "full", "fold"] }
proc-macro2 = "1"

[[bench]]
Expand Down
4 changes: 2 additions & 2 deletions html5ever/macros/match_token.rs
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ impl Parse for LHS {
}
Ok(LHS::Tags(tags))
} else {
let p: syn::Pat = input.parse()?;
let p = input.call(syn::Pat::parse_single)?;
Ok(LHS::Pattern(p))
}
}
Expand Down Expand Up @@ -423,7 +423,7 @@ impl Fold for MatchTokenParser {
if mac.path == parse_quote!(match_token) {
return syn::fold::fold_stmt(
self,
syn::Stmt::Expr(expand_match_token(&mac.tokens)),
syn::Stmt::Expr(expand_match_token(&mac.tokens), None),
);
}
},
Expand Down

0 comments on commit 9ef751b

Please sign in to comment.