From 048d6830e13d364d364f8c4222cb49bdc06d5729 Mon Sep 17 00:00:00 2001 From: yggverse Date: Tue, 17 Dec 2024 03:37:30 +0200 Subject: [PATCH] remove extra getter --- .../window/tab/item/page/content/text/gemini/reader.rs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/app/browser/window/tab/item/page/content/text/gemini/reader.rs b/src/app/browser/window/tab/item/page/content/text/gemini/reader.rs index 85cf9df4..f6f77435 100644 --- a/src/app/browser/window/tab/item/page/content/text/gemini/reader.rs +++ b/src/app/browser/window/tab/item/page/content/text/gemini/reader.rs @@ -204,7 +204,7 @@ impl Reader { // Append value to buffer buffer.insert_with_tags( &mut buffer.end_iter(), - header.value.as_str(), + &header.value, &[match header.level { Level::H1 => &tag.h1, Level::H2 => &tag.h2, @@ -289,11 +289,7 @@ impl Reader { // Is quote if let Some(quote) = Quote::from(line) { // Append value to buffer - buffer.insert_with_tags( - &mut buffer.end_iter(), - quote.value.as_str(), - &[&tag.quote], - ); + buffer.insert_with_tags(&mut buffer.end_iter(), "e.value, &[&tag.quote]); buffer.insert(&mut buffer.end_iter(), NEW_LINE); // Skip other actions for this line