File tree Expand file tree Collapse file tree 3 files changed +5
-8
lines changed
Expand file tree Collapse file tree 3 files changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ use css::{
88
99use crate :: extract_style:: extract_static_style:: ExtractStaticStyle ;
1010
11- pub fn css_to_style < ' a > (
11+ pub fn css_to_style (
1212 css : & str ,
1313 level : u8 ,
1414 selector : & Option < StyleSelector > ,
@@ -85,7 +85,7 @@ pub fn css_to_style<'a>(
8585 styles
8686}
8787
88- fn css_to_style_block < ' a > (
88+ fn css_to_style_block (
8989 css : & str ,
9090 level : u8 ,
9191 selector : & Option < StyleSelector > ,
@@ -116,9 +116,7 @@ fn css_to_style_block<'a>(
116116 . collect ( )
117117}
118118
119- pub fn keyframes_to_keyframes_style < ' a > (
120- keyframes : & str ,
121- ) -> BTreeMap < String , Vec < ExtractStaticStyle > > {
119+ pub fn keyframes_to_keyframes_style ( keyframes : & str ) -> BTreeMap < String , Vec < ExtractStaticStyle > > {
122120 let mut map = BTreeMap :: new ( ) ;
123121 let mut input = keyframes;
124122
Original file line number Diff line number Diff line change @@ -106,7 +106,7 @@ pub fn extract_global_style_from_expression<'a>(
106106 & None ,
107107 )
108108 . into_iter ( )
109- . map ( |p| ExtractStyleValue :: Static ( p ) )
109+ . map ( ExtractStyleValue :: Static )
110110 . collect :: < Vec < _ > > ( ) ;
111111 styles. push ( ExtractStyleProp :: Static ( ExtractStyleValue :: FontFace (
112112 ExtractFontFace {
Original file line number Diff line number Diff line change @@ -247,13 +247,12 @@ impl<'a> VisitMut<'a> for DevupVisitor<'a> {
247247 }
248248 // already set style order
249249 self . styles
250- . extend ( styles. into_iter ( ) . map ( |ex| ExtractStyleValue :: Static ( ex ) ) ) ;
250+ . extend ( styles. into_iter ( ) . map ( ExtractStyleValue :: Static ) ) ;
251251 }
252252 UtilType :: Keyframes => {
253253 let keyframes = ExtractKeyframes {
254254 keyframes : keyframes_to_keyframes_style ( & css_str)
255255 . into_iter ( )
256- . map ( |( k, v) | ( k, v) )
257256 . collect ( ) ,
258257 } ;
259258 let name = keyframes. extract ( ) . to_string ( ) ;
You can’t perform that action at this time.
0 commit comments