Skip to content

Commit 2907926

Browse files
committed
chore: cargo fmt
Signed-off-by: Dmitry Dygalo <dmitry@dygalo.dev>
1 parent 64c8027 commit 2907926

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

css-inline/src/html/serializer.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -713,8 +713,7 @@ fn merge_styles<Wr: Write>(
713713
.take(parsed_declarations_count)
714714
.find(|style| {
715715
style.starts_with(property.as_bytes())
716-
&& style
717-
.get(property.len()..property.len().saturating_add(sep.len()))
716+
&& style.get(property.len()..property.len().saturating_add(sep.len()))
718717
== Some(sep)
719718
}),
720719
) {
@@ -739,8 +738,8 @@ fn merge_styles<Wr: Write>(
739738
);
740739
// `push_or_update!` increments `parsed_declarations_count`, so subtract 1
741740
// to get the slot that was just written and append the `!important` suffix.
742-
if let Some(buf) = declarations_buffer
743-
.get_mut(parsed_declarations_count.saturating_sub(1))
741+
if let Some(buf) =
742+
declarations_buffer.get_mut(parsed_declarations_count.saturating_sub(1))
744743
{
745744
buf.extend_from_slice(b" !important");
746745
}

0 commit comments

Comments
 (0)