From f7ca640966d9781454624509d60f0e404737dab6 Mon Sep 17 00:00:00 2001 From: boocmp Date: Fri, 9 Feb 2024 13:46:20 +0700 Subject: [PATCH] Removed concat. --- .../rust/lib/src/readability/src/extractor.rs | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/components/speedreader/rust/lib/src/readability/src/extractor.rs b/components/speedreader/rust/lib/src/readability/src/extractor.rs index f2c02af65aeb..78b360653442 100644 --- a/components/speedreader/rust/lib/src/readability/src/extractor.rs +++ b/components/speedreader/rust/lib/src/readability/src/extractor.rs @@ -299,11 +299,9 @@ pub fn extract_dom( let mut val: String = String::from("" + &content; } } @@ -322,18 +320,18 @@ pub fn extract_dom( if theme.is_some() || font_family.is_some() || font_size.is_some() || column_width.is_some() { let mut header: String = String::from("".to_string(), content, "".to_string()].concat(); + content = header + ">" + &content + ""; } Ok(Product { meta, content })