From bfbe2a930def210713a736e3b87cdd6cfb943722 Mon Sep 17 00:00:00 2001 From: yggverse Date: Tue, 21 Jan 2025 19:02:10 +0200 Subject: [PATCH] use global namespace --- src/app/browser/window/tab/item/client/driver/gemini.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/app/browser/window/tab/item/client/driver/gemini.rs b/src/app/browser/window/tab/item/client/driver/gemini.rs index 7fcd957c..9cbf4320 100644 --- a/src/app/browser/window/tab/item/client/driver/gemini.rs +++ b/src/app/browser/window/tab/item/client/driver/gemini.rs @@ -1,4 +1,8 @@ use super::{Feature, Page}; +use ggemini::client::{ + connection::response::{data::Text, meta::Status}, + Request, +}; use gtk::glib::{GString, UriFlags}; use gtk::prelude::{EditableExt, FileExt}; use gtk::{ @@ -63,8 +67,6 @@ impl Gemini { // Actions pub fn handle(&self, uri: Uri, feature: Feature, cancellable: Cancellable, is_history: bool) { - use ggemini::client::connection::response::{data::Text, meta::Status}; - // Move focus out from navigation entry self.page .browser_action @@ -101,7 +103,7 @@ impl Gemini { } self.client.request_async( - ggemini::client::Request::gemini(uri.clone()), + Request::gemini(uri.clone()), Priority::DEFAULT, cancellable.clone(), // Search for user certificate match request