|
0 |
From 38e0dec90936dfbcd90420bb36ac5a69b2ab3477 Mon Sep 17 00:00:00 2001
|
|
1 |
From: Bastien Orivel <eijebong@bananium.fr>
|
|
2 |
Date: Tue, 13 Aug 2019 19:32:09 +0200
|
|
3 |
Subject: [PATCH] Update syn related crates to 1.0 and bump version
|
|
4 |
|
|
5 |
---
|
|
6 |
html5ever/Cargo.toml | 8 ++++----
|
|
7 |
html5ever/macros/match_token.rs | 4 ++--
|
|
8 |
2 files changed, 6 insertions(+), 6 deletions(-)
|
|
9 |
|
|
10 |
diff --git a/html5ever/macros/match_token.rs b/html5ever/macros/match_token.rs
|
|
11 |
index 8671841..b434de7 100644
|
|
12 |
--- a/macros/match_token.rs
|
|
13 |
+++ b/macros/match_token.rs
|
|
14 |
@@ -421,7 +421,7 @@ impl Fold for MatchTokenParser {
|
|
15 |
if mac.path == parse_quote!(match_token) {
|
|
16 |
return syn::fold::fold_stmt(
|
|
17 |
self,
|
|
18 |
- syn::Stmt::Expr(expand_match_token(&mac.tts)),
|
|
19 |
+ syn::Stmt::Expr(expand_match_token(&mac.tokens)),
|
|
20 |
);
|
|
21 |
}
|
|
22 |
},
|
|
23 |
@@ -435,7 +435,7 @@ impl Fold for MatchTokenParser {
|
|
24 |
match expr {
|
|
25 |
syn::Expr::Macro(syn::ExprMacro { ref mac, .. }) => {
|
|
26 |
if mac.path == parse_quote!(match_token) {
|
|
27 |
- return syn::fold::fold_expr(self, expand_match_token(&mac.tts));
|
|
28 |
+ return syn::fold::fold_expr(self, expand_match_token(&mac.tokens));
|
|
29 |
}
|
|
30 |
},
|
|
31 |
_ => {},
|