From 2fd9327c88b63f44234f1111d386ee0fbc19f098 Mon Sep 17 00:00:00 2001 From: yggverse Date: Mon, 2 Dec 2024 22:00:52 +0200 Subject: [PATCH] replace GString with String --- src/line/code/inline.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/line/code/inline.rs b/src/line/code/inline.rs index 9f3ef8d..e52d03d 100644 --- a/src/line/code/inline.rs +++ b/src/line/code/inline.rs @@ -1,7 +1,7 @@ -use glib::{GString, Regex, RegexCompileFlags, RegexMatchFlags}; +use glib::{Regex, RegexCompileFlags, RegexMatchFlags}; pub struct Inline { - pub value: GString, + pub value: String, } impl Inline { @@ -23,7 +23,7 @@ impl Inline { // Result Some(Self { - value: GString::from(value.as_str()), + value: value.to_string(), }) } }