File tree Expand file tree Collapse file tree 4 files changed +5
-13
lines changed Expand file tree Collapse file tree 4 files changed +5
-13
lines changed Original file line number Diff line number Diff line change 1
1
[package ]
2
2
3
3
name = " cssparser"
4
- version = " 0.12.4 "
4
+ version = " 0.13.0 "
5
5
authors = [ " Simon Sapin <simon.sapin@exyr.org>" ]
6
6
7
7
description = " Rust implementation of CSS Syntax Level 3"
@@ -20,7 +20,7 @@ difference = "1.0"
20
20
encoding_rs = " 0.5"
21
21
22
22
[dependencies ]
23
- cssparser-macros = {path = " ./macros" , version = " 0.2 " }
23
+ cssparser-macros = {path = " ./macros" , version = " 0.3 " }
24
24
heapsize = {version = " 0.3" , optional = true }
25
25
matches = " 0.1"
26
26
phf = " 0.7"
Original file line number Diff line number Diff line change 1
1
[package ]
2
2
name = " cssparser-macros"
3
- version = " 0.2 .0"
3
+ version = " 0.3 .0"
4
4
authors = [" Simon Sapin <simon.sapin@exyr.org>" ]
5
5
description = " Procedural macros for cssparser"
6
6
documentation = " https://docs.rs/cssparser-macros/"
Original file line number Diff line number Diff line change @@ -27,15 +27,7 @@ define_proc_macros! {
27
27
max_len( arms. iter( ) . flat_map( |arm| & arm. pats) . filter_map( |pattern| {
28
28
let expr = match * pattern {
29
29
syn:: Pat :: Lit ( ref expr) => expr,
30
- syn:: Pat :: Wild |
31
- syn:: Pat :: Ident ( _, _, None ) => return None ,
32
- syn:: Pat :: Ident ( _, _, Some ( ref sub_pattern) ) => {
33
- match * * sub_pattern {
34
- syn:: Pat :: Lit ( ref expr) => expr,
35
- syn:: Pat :: Wild => return None ,
36
- _ => panic!( "expected string or wildcard pattern, got {:?}" , pattern)
37
- }
38
- }
30
+ syn:: Pat :: Wild => return None ,
39
31
_ => panic!( "expected string or wildcard pattern, got {:?}" , pattern)
40
32
} ;
41
33
match * * expr {
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ define_invoke_proc_macro!(cssparser_internal__invoke_proc_macro);
22
22
/// "rgba" => parse_rgba(..),
23
23
/// "hsl" => parse_hsl(..),
24
24
/// "hsla" => parse_hsla(..),
25
- /// name @ _ => Err(format!("unknown function: {}", name ))
25
+ /// _ => Err(format!("unknown function: {}", function_name ))
26
26
/// }
27
27
/// # ;}
28
28
/// # use std::ops::RangeFull;
You can’t perform that action at this time.
0 commit comments