mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-03-13 06:01:21 +00:00
update member type
This commit is contained in:
parent
6a8f7548c8
commit
3f4efee60b
@ -84,7 +84,7 @@ fn handle(
|
||||
move |result| match result {
|
||||
Ok(text) => callback(Response::TextGemini {
|
||||
base: request.as_uri().clone(),
|
||||
source: text.as_gstring(),
|
||||
source: text.to_string(),
|
||||
is_source_request: matches!(request.feature(), Feature::Source), // @TODO return `Feature`?
|
||||
}),
|
||||
Err(e) => callback(Response::Failure(Failure::Mime {
|
||||
|
@ -12,7 +12,7 @@ pub use redirect::Redirect;
|
||||
// Global dependencies
|
||||
use gtk::{
|
||||
gio::{Cancellable, IOStream},
|
||||
glib::{GString, Uri},
|
||||
glib::Uri,
|
||||
};
|
||||
|
||||
/// Single `Client` response API for all protocol drivers
|
||||
@ -26,7 +26,7 @@ pub enum Response {
|
||||
Failure(Failure),
|
||||
TextGemini {
|
||||
base: Uri,
|
||||
source: GString,
|
||||
source: String,
|
||||
is_source_request: bool,
|
||||
},
|
||||
Input(Input),
|
||||
|
Loading…
x
Reference in New Issue
Block a user