From 4698d7dce176ffff1e19d28239a008db610ac1fa Mon Sep 17 00:00:00 2001 From: yggverse Date: Sun, 19 Jan 2025 02:37:05 +0200 Subject: [PATCH] rename methods --- src/app/browser/window/tab/item/page/client/request.rs | 2 +- .../browser/window/tab/item/page/client/request/gemini.rs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/app/browser/window/tab/item/page/client/request.rs b/src/app/browser/window/tab/item/page/client/request.rs index e0882072..f9d10924 100644 --- a/src/app/browser/window/tab/item/page/client/request.rs +++ b/src/app/browser/window/tab/item/page/client/request.rs @@ -67,7 +67,7 @@ impl Request { feature, referrer, uri, - } => gemini::send(client, feature, uri, referrer, cancellable, callback), + } => gemini::request(client, feature, uri, referrer, cancellable, callback), Self::Titan { referrer: _, uri: _, diff --git a/src/app/browser/window/tab/item/page/client/request/gemini.rs b/src/app/browser/window/tab/item/page/client/request/gemini.rs index ed74a7ee..739d2a0f 100644 --- a/src/app/browser/window/tab/item/page/client/request/gemini.rs +++ b/src/app/browser/window/tab/item/page/client/request/gemini.rs @@ -5,7 +5,7 @@ use gtk::{ glib::{Priority, Uri, UriFlags}, }; -pub fn send( +pub fn request( client: &Client, feature: Feature, uri: Uri, @@ -13,7 +13,7 @@ pub fn send( cancellable: Cancellable, callback: impl FnOnce(Response) + 'static, ) { - request( + send( client, uri.clone(), cancellable.clone(), @@ -27,7 +27,7 @@ pub fn send( } /// Shared request interface for Gemini protocol -fn request( +fn send( client: &Client, uri: Uri, cancellable: Cancellable,