useless vec
Some checks are pending
ci/woodpecker/push/publish Pipeline is pending approval

This commit is contained in:
Mylloon 2024-06-16 15:32:19 +02:00
parent c224816807
commit 975d6de8e6
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -396,7 +396,6 @@ fn check_code<'a>(root: &'a AstNode<'a>, blacklist: &[String]) -> bool {
fn check_math(html: &str) -> bool {
let math_detected = Arc::new(AtomicBool::new(false));
let mut output = vec![];
let _ = HtmlRewriter::new(
Settings {
element_content_handlers: vec![element!("span[data-math-style]", |_| {
@ -406,7 +405,7 @@ fn check_math(html: &str) -> bool {
})],
..Settings::default()
},
|c: &[u8]| output.extend_from_slice(c),
|_: &[u8]| {},
)
.write(html.as_bytes());