mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-01-15 17:20:08 +00:00
use GString in glib context
This commit is contained in:
parent
adcf05f43a
commit
9cf434fdab
@ -1,4 +1,4 @@
|
|||||||
use gtk::glib::{Regex, RegexCompileFlags, RegexMatchFlags};
|
use gtk::glib::{GString, Regex, RegexCompileFlags, RegexMatchFlags};
|
||||||
|
|
||||||
pub enum Level {
|
pub enum Level {
|
||||||
H1,
|
H1,
|
||||||
@ -7,7 +7,7 @@ pub enum Level {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pub struct Header {
|
pub struct Header {
|
||||||
value: String,
|
value: GString,
|
||||||
level: Level,
|
level: Level,
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -41,7 +41,7 @@ impl Header {
|
|||||||
// Result
|
// Result
|
||||||
Some(Header {
|
Some(Header {
|
||||||
level,
|
level,
|
||||||
value: String::from(value.as_str()),
|
value: GString::from(value.as_str()),
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user