Skip to content

Commit 36ba680

Browse files
committed
Update Coverage
1 parent 83c3538 commit 36ba680

File tree

3 files changed

+5
-8
lines changed

3 files changed

+5
-8
lines changed

libs/extractor/src/css_utils.rs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use css::{
88

99
use 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

libs/extractor/src/extractor/extract_global_style_from_expression.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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 {

libs/extractor/src/visit.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff 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();

0 commit comments

Comments
 (0)