Skip to content

Commit 80f815c

Browse files
committed
Fix lint
1 parent 0c3dc51 commit 80f815c

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

libs/extractor/src/extractor/extract_global_style_from_expression.rs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -105,18 +105,16 @@ pub fn extract_global_style_from_expression<'a>(
105105
)));
106106
} else if let ArrayExpressionElement::TemplateLiteral(t) = p {
107107
let css_styles = css_to_style(
108-
&t.quasis
108+
t.quasis
109109
.iter()
110110
.map(|q| q.value.raw.as_str())
111111
.collect::<String>()
112-
.trim()
113-
.to_string(),
112+
.trim(),
114113
0,
115114
&None,
116115
)
117116
.into_iter()
118-
.map(|p| p.extract())
119-
.flatten()
117+
.flat_map(|p| p.extract())
120118
.collect::<Vec<_>>();
121119
styles.push(ExtractStyleProp::Static(ExtractStyleValue::FontFace(
122120
ExtractFontFace {

0 commit comments

Comments
 (0)