diff --git a/src/misc/markdown.rs b/src/misc/markdown.rs index 84569d8..702ac82 100644 --- a/src/misc/markdown.rs +++ b/src/misc/markdown.rs @@ -178,7 +178,7 @@ fn custom_img_size(html: &str) -> String { RewriteStrSettings { element_content_handlers: vec![element!("img[alt]", |el| { let alt = el.get_attribute("alt").unwrap(); - let possible_piece = alt.split(|c| c == '|').collect::>(); + let possible_piece = alt.split('|').collect::>(); if possible_piece.len() > 1 { let data = possible_piece.last().unwrap().trim();