From ca22d9b315eeece750a25a9afd6e4e59dca7aa9a Mon Sep 17 00:00:00 2001 From: yggverse Date: Thu, 24 Oct 2024 21:10:41 +0300 Subject: [PATCH] change ns location --- src/app/browser/window/tab/item/page.rs | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/src/app/browser/window/tab/item/page.rs b/src/app/browser/window/tab/item/page.rs index fa9d5a8d..8ea955ac 100644 --- a/src/app/browser/window/tab/item/page.rs +++ b/src/app/browser/window/tab/item/page.rs @@ -189,6 +189,15 @@ impl Page { todo!() } "gemini" => { + // Define local NS + use gemini::client::{ + connection::Input, + response::{ + header::{Mime as ResponseMime, Status as ResponseStatus}, + Response, + }, + }; + // Get host let host = match uri.host() { Some(host) => host, @@ -229,18 +238,6 @@ impl Page { Some(&cancellable.clone()), move |o| match o { Ok(_) => { - // Define local namespace - use gemini::client::{ - connection::Input, - response::{ - header::{ - Mime as ResponseMime, - Status as ResponseStatus - }, - Response, - } - }; - // Update page status meta.borrow_mut().status = Some(Status::Request); meta.borrow_mut().description = Some(gformat!("Request data from {host}.."));