Skip to content

Commit

Permalink
replace GString with String
Browse files Browse the repository at this point in the history
  • Loading branch information
yggverse committed Dec 2, 2024
1 parent 737117b commit dbe080a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/line/link.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use glib::{DateTime, GString, Regex, RegexCompileFlags, RegexMatchFlags, TimeZone, Uri, UriFlags};
use glib::{DateTime, Regex, RegexCompileFlags, RegexMatchFlags, TimeZone, Uri, UriFlags};

pub struct Link {
pub alt: Option<GString>, // [optional] alternative link description
pub alt: Option<String>, // [optional] alternative link description
pub is_external: Option<bool>, // [optional] external link indication, on base option provided
pub timestamp: Option<DateTime>, // [optional] valid link DateTime object
pub uri: Uri, // [required] valid link URI object
Expand Down Expand Up @@ -86,7 +86,7 @@ impl Link {
// Alt
if let Some(value) = regex.get(3) {
if !value.is_empty() {
alt = Some(GString::from(value.as_str()))
alt = Some(value.to_string())
}
};

Expand Down

0 comments on commit dbe080a

Please sign in to comment.