Skip to content

Commit 1259bf0

Browse files
committed
Clean: cargo fmt.
1 parent 74d0b4c commit 1259bf0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

server/src/processing.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1139,7 +1139,9 @@ fn replace_math_node(child: &Rc<Node>, is_hydrate: bool) -> Option<Rc<Node>> {
11391139
// Since we've already borrowed `child`, we can't `borrow_mut` to modify it. Instead, create a new `span` with delimited text and return that.
11401140
if let Some(delim) = delim {
11411141
let contents_str = &*contents.borrow();
1142-
let delimited_text_str = if is_hydrate { format!("{}{}{}", delim.0, contents_str, delim.1) } else {
1142+
let delimited_text_str = if is_hydrate {
1143+
format!("{}{}{}", delim.0, contents_str, delim.1)
1144+
} else {
11431145
// Only apply the dehydration is the delimiters are correct.
11441146
if !contents_str.starts_with(delim.0) || !contents_str.ends_with(delim.1) {
11451147
return None;

0 commit comments

Comments
 (0)