Skip to content

Commit d3581fb

Browse files
committed
chore: fix clippy
Signed-off-by: Dmitry Dygalo <[email protected]>
1 parent 6fa5ebf commit d3581fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

css-inline/src/html/serializer.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ impl<'a, W: Write> HtmlSerializer<'a, W> {
224224
}
225225

226226
let mut styles = if let Some(node_id) = style_node_id {
227-
self.styles.remove(&node_id).map(|mut styles| {
227+
self.styles.swap_remove(&node_id).map(|mut styles| {
228228
styles.sort_unstable_by(|_, (a, _), _, (b, _)| a.cmp(b));
229229
styles
230230
})

0 commit comments

Comments
 (0)