Skip to content

Commit 38e0dec

Browse files
committed
Update syn related crates to 1.0 and bump version
1 parent c538147 commit 38e0dec

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

html5ever/Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22

33
name = "html5ever"
4-
version = "0.24.0"
4+
version = "0.24.1"
55
authors = [ "The html5ever Project Developers" ]
66
license = "MIT / Apache-2.0"
77
repository = "https://github.com/servo/html5ever"
@@ -38,9 +38,9 @@ typed-arena = "1.3.0"
3838
criterion = "0.2"
3939

4040
[build-dependencies]
41-
quote = "0.6"
42-
syn = { version = "0.15", features = ["extra-traits", "full", "fold"] }
43-
proc-macro2 = "0.4"
41+
quote = "1"
42+
syn = { version = "1", features = ["extra-traits", "full", "fold"] }
43+
proc-macro2 = "1"
4444

4545
[[bench]]
4646
name = "html5ever"

html5ever/macros/match_token.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@ impl Fold for MatchTokenParser {
421421
if mac.path == parse_quote!(match_token) {
422422
return syn::fold::fold_stmt(
423423
self,
424-
syn::Stmt::Expr(expand_match_token(&mac.tts)),
424+
syn::Stmt::Expr(expand_match_token(&mac.tokens)),
425425
);
426426
}
427427
},
@@ -435,7 +435,7 @@ impl Fold for MatchTokenParser {
435435
match expr {
436436
syn::Expr::Macro(syn::ExprMacro { ref mac, .. }) => {
437437
if mac.path == parse_quote!(match_token) {
438-
return syn::fold::fold_expr(self, expand_match_token(&mac.tts));
438+
return syn::fold::fold_expr(self, expand_match_token(&mac.tokens));
439439
}
440440
},
441441
_ => {},

0 commit comments

Comments
 (0)