From e769adf66d7ccb42cdaeb4734f46364dec96b394 Mon Sep 17 00:00:00 2001 From: Clover Johnson <95094165+callmeclover@users.noreply.github.com> Date: Tue, 23 Apr 2024 13:25:04 -0400 Subject: [PATCH] fix 9 --- src/message/func.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/message/func.rs b/src/message/func.rs index 24aebf8a..603382bd 100644 --- a/src/message/func.rs +++ b/src/message/func.rs @@ -27,8 +27,8 @@ pub fn into_censored_md(html: &str, user: &mut User) -> Result = document.descendants().text_nodes().map(|text| { as Clone>::clone(&text).into_inner()}).collect(); let mut nodes_char: Vec; - match &user.glass.process(&nodes_text.join("")) { - Ok(val) => { nodes_char = val.chars().collect() }, + match user.glass.process(&nodes_text.join("")) { + Ok(val) => { nodes_char = val.as_str().chars().collect() }, Err(err) => { return Err(err); } }