rename methods

This commit is contained in:
yggverse 2025-01-19 02:37:05 +02:00
parent 4f7df8ea44
commit 4698d7dce1
2 changed files with 4 additions and 4 deletions

View File

@ -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: _,

View File

@ -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,