From f6fe910431bfb3aa66b8f5e01a8747d6493a6b9d Mon Sep 17 00:00:00 2001 From: yggverse Date: Fri, 8 Nov 2024 05:31:31 +0200 Subject: [PATCH] enshort construction --- src/app/browser/window/tab/item/page.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/app/browser/window/tab/item/page.rs b/src/app/browser/window/tab/item/page.rs index be4148d8..ba4146c3 100644 --- a/src/app/browser/window/tab/item/page.rs +++ b/src/app/browser/window/tab/item/page.rs @@ -766,10 +766,7 @@ impl Page { UriHideFlags::FRAGMENT | UriHideFlags::QUERY ), // Set follow policy based on status code - match response.status() { - gemini::client::response::meta::Status::PermanentRedirect => true, - _ => false - }, + matches!(response.status(), gemini::client::response::meta::Status::PermanentRedirect), ) .set_status(Status::Redirect) // @TODO is this status really wanted? .set_title("Redirect");