cargo fmt

This commit is contained in:
Luke Boswell 2023-03-06 22:37:56 +11:00
parent 5ead576976
commit 25b3b61e07
No known key found for this signature in database
GPG key ID: F6DB3C9DB47377B0
2 changed files with 5 additions and 6 deletions

View file

@ -859,7 +859,6 @@ fn markdown_to_html(
Some(&mut broken_link_callback),
)
.fold((0, 0), |(start_quote_count, end_quote_count), event| {
match &event {
// Replace this sequence (`>>>` syntax):
// Start(BlockQuote)
@ -932,9 +931,9 @@ fn markdown_to_html(
Event::End(CodeBlock(_)) => {
if in_code_block {
let highlighted_html = roc_highlight::highlight_roc_code(&to_highlight);
docs_parser.push(pulldown_cmark::Event::Html(
pulldown_cmark::CowStr::from(highlighted_html),
));
docs_parser.push(pulldown_cmark::Event::Html(pulldown_cmark::CowStr::from(
highlighted_html,
)));
to_highlight = String::new();
in_code_block = false;
}