mirror of
https://github.com/YGGverse/ggemini.git
synced 2026-03-31 17:15:31 +00:00
update member data type
This commit is contained in:
parent
e96771b926
commit
490a513ddf
1 changed files with 2 additions and 9 deletions
|
|
@ -15,7 +15,7 @@ pub const BUFFER_CAPACITY: usize = 0x400; // 1024
|
|||
pub const BUFFER_MAX_SIZE: usize = 0xfffff; // 1M
|
||||
|
||||
/// Container for text-based response data
|
||||
pub struct Text(GString);
|
||||
pub struct Text(String);
|
||||
|
||||
impl Default for Text {
|
||||
fn default() -> Self {
|
||||
|
|
@ -28,7 +28,7 @@ impl Text {
|
|||
|
||||
/// Create new `Self`
|
||||
pub fn new() -> Self {
|
||||
Self(GString::new())
|
||||
Self(String::new())
|
||||
}
|
||||
|
||||
/// Create new `Self` from string
|
||||
|
|
@ -62,13 +62,6 @@ impl Text {
|
|||
},
|
||||
);
|
||||
}
|
||||
|
||||
// Getters
|
||||
|
||||
/// Get `Self` as `glib::GString`
|
||||
pub fn as_gstring(&self) -> &GString {
|
||||
&self.0
|
||||
}
|
||||
}
|
||||
|
||||
impl std::fmt::Display for Text {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue