diff --git a/crates/docs/src/lib.rs b/crates/docs/src/lib.rs index c9bf93d39f..fcb3dd464d 100644 --- a/crates/docs/src/lib.rs +++ b/crates/docs/src/lib.rs @@ -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; } diff --git a/crates/highlight/src/lib.rs b/crates/highlight/src/lib.rs index 0dcdcd81b2..15a63262b6 100644 --- a/crates/highlight/src/lib.rs +++ b/crates/highlight/src/lib.rs @@ -78,10 +78,10 @@ pub fn highlight_roc_code(code: &str) -> String { } Token::UpperIdent => { buf = push_html_span(buf, current_text, "upperident"); - } + } Token::LowerIdent => { buf = push_html_span(buf, current_text, "lowerident"); - } + } Token::Error | Token::Other => { buf = push_html(buf, current_text); }