From c97648539fe857e5505a7566ef24dd13d46e59da Mon Sep 17 00:00:00 2001 From: yggverse Date: Fri, 17 Jan 2025 07:42:33 +0200 Subject: [PATCH] replace `gformat` with `into` --- .../window/tab/item/page/client/driver/gemini.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/app/browser/window/tab/item/page/client/driver/gemini.rs b/src/app/browser/window/tab/item/page/client/driver/gemini.rs index d09e1a1c..80be04ea 100644 --- a/src/app/browser/window/tab/item/page/client/driver/gemini.rs +++ b/src/app/browser/window/tab/item/page/client/driver/gemini.rs @@ -4,7 +4,7 @@ use super::{ }; use gtk::{ gio::Cancellable, - glib::{gformat, Priority, Uri}, + glib::{Priority, Uri}, }; use std::rc::Rc; @@ -51,14 +51,14 @@ pub fn handle( base, title: match response.meta.data { Some(data) => data.value, - None => gformat!("Input expected"), + None => "Input expected".into(), }, })), Status::SensitiveInput => callback(Response::Input(Input::Sensitive { base, title: match response.meta.data { Some(data) => data.value, - None => gformat!("Input expected"), + None => "Input expected".into(), }, })), // https://geminiprotocol.net/docs/protocol-specification.gmi#status-20 @@ -107,7 +107,7 @@ pub fn handle( Status::CertificateRequest => callback(Response::Certificate(Certificate::Request { title: match response.meta.data { Some(data) => data.value, - None => gformat!("Client certificate required"), + None => "Client certificate required".into(), }, })), // https://geminiprotocol.net/docs/protocol-specification.gmi#status-61-certificate-not-authorized @@ -115,7 +115,7 @@ pub fn handle( callback(Response::Certificate(Certificate::Request { title: match response.meta.data { Some(data) => data.value, - None => gformat!("Certificate not authorized"), + None => "Certificate not authorized".into(), }, })) } @@ -123,7 +123,7 @@ pub fn handle( Status::CertificateInvalid => callback(Response::Certificate(Certificate::Request { title: match response.meta.data { Some(data) => data.value, - None => gformat!("Certificate not valid"), + None => "Certificate not valid".into(), }, })), status => callback(Response::Failure(Failure::Status {