replace GString with String

This commit is contained in:
yggverse 2024-12-02 22:00:52 +02:00
parent 7d6c049870
commit 2fd9327c88

View file

@ -1,7 +1,7 @@
use glib::{GString, Regex, RegexCompileFlags, RegexMatchFlags}; use glib::{Regex, RegexCompileFlags, RegexMatchFlags};
pub struct Inline { pub struct Inline {
pub value: GString, pub value: String,
} }
impl Inline { impl Inline {
@ -23,7 +23,7 @@ impl Inline {
// Result // Result
Some(Self { Some(Self {
value: GString::from(value.as_str()), value: value.to_string(),
}) })
} }
} }