From 27a8cad8f0cc3c702df986656bf242e1e5b7796f Mon Sep 17 00:00:00 2001 From: yggverse Date: Mon, 2 Dec 2024 22:30:28 +0200 Subject: [PATCH] rename variable --- .../window/tab/item/page/content/text/gemini/reader.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 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 97ecc564..5982eff9 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 @@ -72,7 +72,7 @@ impl Reader { buffer.insert_with_tags( &mut buffer.end_iter(), &match syntax.highlight(&code.value, None) { - Some(result) => result, + Some(highlight) => highlight, None => code.value.to_string(), }, &[&tag.code.text_tag], @@ -123,7 +123,7 @@ impl Reader { buffer.insert_with_tags( &mut buffer.end_iter(), &match syntax.highlight(&this.value, alt) { - Some(result) => result, + Some(highlight) => highlight, None => this.value.to_string(), }, &[&tag.code.text_tag],