From dd6e0a3df63cd1a82fee1012a9c1f1c7cac1bf9e Mon Sep 17 00:00:00 2001 From: yggverse Date: Thu, 12 Dec 2024 22:05:10 +0200 Subject: [PATCH] remove return value --- src/app/browser/window/tab/item/page/navigation/request.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/app/browser/window/tab/item/page/navigation/request.rs b/src/app/browser/window/tab/item/page/navigation/request.rs index bbc98524..f556a596 100644 --- a/src/app/browser/window/tab/item/page/navigation/request.rs +++ b/src/app/browser/window/tab/item/page/navigation/request.rs @@ -167,7 +167,7 @@ impl Request { resolver_timeout: u32, cancellable: Option<&Cancellable>, callback: impl FnOnce(Option) + 'static, - ) -> Option { + ) { // suggest scheme let url = gformat!("gemini://{}", self.strip_prefix().trim()); @@ -184,9 +184,8 @@ impl Request { Ok(_) => Some(url), Err(_) => None, }) - }); + }) } - None } }