server: cargo fmt
This commit is contained in:
parent
6ca2459034
commit
7f1f61dc7d
@ -242,7 +242,9 @@ impl Body {
|
|||||||
match self {
|
match self {
|
||||||
Body::Html(h) => Some(h.html.clone()),
|
Body::Html(h) => Some(h.html.clone()),
|
||||||
Body::PlainText(p) => Some(format!("<pre>{}</pre>", html_escape::encode_text(&p.text))),
|
Body::PlainText(p) => Some(format!("<pre>{}</pre>", html_escape::encode_text(&p.text))),
|
||||||
Body::UnhandledContentType(u) => Some(format!("<pre>{}</pre>", html_escape::encode_text(&u.text))),
|
Body::UnhandledContentType(u) => {
|
||||||
|
Some(format!("<pre>{}</pre>", html_escape::encode_text(&u.text)))
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user