Skip to content

Commit 9ef751b

Browse files
authored
Upgrade syn to 2.0 (#499)
1 parent ecbd26a commit 9ef751b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

html5ever/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ criterion = "0.3"
2424

2525
[build-dependencies]
2626
quote = "1"
27-
syn = { version = "1", features = ["extra-traits", "full", "fold"] }
27+
syn = { version = "2", features = ["extra-traits", "full", "fold"] }
2828
proc-macro2 = "1"
2929

3030
[[bench]]

html5ever/macros/match_token.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ impl Parse for LHS {
197197
}
198198
Ok(LHS::Tags(tags))
199199
} else {
200-
let p: syn::Pat = input.parse()?;
200+
let p = input.call(syn::Pat::parse_single)?;
201201
Ok(LHS::Pattern(p))
202202
}
203203
}
@@ -423,7 +423,7 @@ impl Fold for MatchTokenParser {
423423
if mac.path == parse_quote!(match_token) {
424424
return syn::fold::fold_stmt(
425425
self,
426-
syn::Stmt::Expr(expand_match_token(&mac.tokens)),
426+
syn::Stmt::Expr(expand_match_token(&mac.tokens), None),
427427
);
428428
}
429429
},

0 commit comments

Comments
 (0)