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 11[package ]
22
33name = " cssparser"
4- version = " 0.12.4 "
4+ version = " 0.13.0 "
55authors = [ " Simon Sapin <simon.sapin@exyr.org>" ]
66
77description = " Rust implementation of CSS Syntax Level 3"
@@ -20,7 +20,7 @@ difference = "1.0"
2020encoding_rs = " 0.5"
2121
2222[dependencies ]
23- cssparser-macros = {path = " ./macros" , version = " 0.2 " }
23+ cssparser-macros = {path = " ./macros" , version = " 0.3 " }
2424heapsize = {version = " 0.3" , optional = true }
2525matches = " 0.1"
2626phf = " 0.7"
Original file line number Diff line number Diff line change 11[package ]
22name = " cssparser-macros"
3- version = " 0.2 .0"
3+ version = " 0.3 .0"
44authors = [" Simon Sapin <simon.sapin@exyr.org>" ]
55description = " Procedural macros for cssparser"
66documentation = " https://docs.rs/cssparser-macros/"
Original file line number Diff line number Diff line change @@ -27,15 +27,7 @@ define_proc_macros! {
2727 max_len( arms. iter( ) . flat_map( |arm| & arm. pats) . filter_map( |pattern| {
2828 let expr = match * pattern {
2929 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 ,
3931 _ => panic!( "expected string or wildcard pattern, got {:?}" , pattern)
4032 } ;
4133 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);
2222/// "rgba" => parse_rgba(..),
2323/// "hsl" => parse_hsl(..),
2424/// "hsla" => parse_hsla(..),
25- /// name @ _ => Err(format!("unknown function: {}", name ))
25+ /// _ => Err(format!("unknown function: {}", function_name ))
2626/// }
2727/// # ;}
2828/// # use std::ops::RangeFull;
You can’t perform that action at this time.
0 commit comments