File tree 3 files changed +5
-7
lines changed
3 files changed +5
-7
lines changed Original file line number Diff line number Diff line change 1
1
[package ]
2
2
name = " cssparser"
3
- version = " 0.25.9 "
3
+ version = " 0.25.10 "
4
4
authors = [ " Simon Sapin <simon.sapin@exyr.org>" ]
5
5
6
6
description = " Rust implementation of CSS Syntax Level 3"
@@ -24,7 +24,7 @@ dtoa-short = "0.3"
24
24
heapsize = {version = " >= 0.3, < 0.5" , optional = true }
25
25
itoa = " 0.4"
26
26
matches = " 0.1"
27
- phf = " 0.7 "
27
+ phf = " 0.8 "
28
28
procedural-masquerade = {path = " ./procedural-masquerade" , version = " 0.1" }
29
29
serde = {version = " 1.0" , optional = true }
30
30
smallvec = " 0.6"
Original file line number Diff line number Diff line change 1
1
[package ]
2
2
name = " cssparser-macros"
3
- version = " 0.3.6 "
3
+ version = " 0.3.7 "
4
4
authors = [" Simon Sapin <simon.sapin@exyr.org>" ]
5
5
description = " Procedural macros for cssparser"
6
6
documentation = " https://docs.rs/cssparser-macros/"
@@ -13,7 +13,7 @@ proc-macro = true
13
13
14
14
[dependencies ]
15
15
procedural-masquerade = {path = " ../procedural-masquerade" , version = " 0.1" }
16
- phf_codegen = " 0.7 "
16
+ phf_codegen = " 0.8 "
17
17
quote = " 1"
18
18
syn = {version = " 1" , features = [" full" , " extra-traits" ]}
19
19
proc-macro2 = " 1"
Original file line number Diff line number Diff line change @@ -86,9 +86,7 @@ define_proc_macros! {
86
86
let mut tokens = quote! {
87
87
static MAP : :: cssparser:: _internal__phf:: Map <& ' static str , #value_type> =
88
88
} ;
89
- let mut initializer_bytes = Vec :: new( ) ;
90
- map. build( & mut initializer_bytes) . unwrap( ) ;
91
- tokens. append_all( syn:: parse_str:: <syn:: Expr >( :: std:: str :: from_utf8( & initializer_bytes) . unwrap( ) ) ) ;
89
+ tokens. append_all( syn:: parse_str:: <proc_macro2:: TokenStream >( & map. build( ) . to_string( ) ) ) ;
92
90
tokens. append_all( quote!( ; ) ) ;
93
91
tokens. to_string( )
94
92
}
You can’t perform that action at this time.
0 commit comments