From f66dfecc16d9ae4e8cca63c21b77b9ff668fdfa2 Mon Sep 17 00:00:00 2001 From: yggverse Date: Fri, 8 Nov 2024 05:38:25 +0200 Subject: [PATCH] use function --- .../browser/window/tab/item/page/content/text/gemini/reader.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 5e910beb..01b8b124 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 @@ -124,7 +124,7 @@ impl Reader { buffer.insert(&mut buffer.end_iter(), "\n"); // Update reader title using first gemtext header match - if title == None { + if title.is_none() { title = Some(header.value.clone()); }