From aa06170e28ed6b408fbb39fb3c84f9b56c478c7e Mon Sep 17 00:00:00 2001 From: yggverse Date: Tue, 5 Nov 2024 09:46:38 +0200 Subject: [PATCH] enshort construction --- src/app/browser/window/tab/item/page.rs | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/src/app/browser/window/tab/item/page.rs b/src/app/browser/window/tab/item/page.rs index 6e969ec2..5ead0c25 100644 --- a/src/app/browser/window/tab/item/page.rs +++ b/src/app/browser/window/tab/item/page.rs @@ -112,15 +112,14 @@ impl Page { action_page_open.connect_activate({ let this = this.clone(); - move |_, parameter| { - // Get request value from action parameter - let request = parameter - .expect("Parameter required for this action") - .get::() - .expect("Parameter does not match `String`"); - - // Update navigation entry - this.navigation.set_request_text(&request); + move |_, request| { + // Set request value from action parameter + this.navigation.set_request_text( + &request + .expect("Parameter required for this action") + .get::() + .expect("Parameter does not match `String`"), + ); // Reload page this.load(true);