Skip to content

Commit

Permalink
trim quote, replace GString with String
Browse files Browse the repository at this point in the history
  • Loading branch information
yggverse committed Dec 3, 2024
1 parent ec9b989 commit c6f747f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/line/quote.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use glib::{GString, Regex, RegexCompileFlags, RegexMatchFlags};
use glib::{Regex, RegexCompileFlags, RegexMatchFlags};

pub struct Quote {
pub value: GString,
pub value: String,
}

impl Quote {
Expand All @@ -15,11 +15,11 @@ impl Quote {
);

// Detect value
let value = regex.get(1)?;
let value = regex.get(1)?.trim();

// Result
Some(Self {
value: GString::from(value.as_str()),
value: String::from(value),
})
}
}

0 comments on commit c6f747f

Please sign in to comment.