Skip to content

Commit

Permalink
fix 9
Browse files Browse the repository at this point in the history
  • Loading branch information
callmeclover committed Apr 23, 2024
1 parent 573af32 commit e769adf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/message/func.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ pub fn into_censored_md(html: &str, user: &mut User) -> Result<String, Box<dyn E

let nodes_text: Vec<String> = document.descendants().text_nodes().map(|text| {<RefCell<String> as Clone>::clone(&text).into_inner()}).collect();
let mut nodes_char: Vec<char>;
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); }
}

Expand Down

0 comments on commit e769adf

Please sign in to comment.