mirror of
https://github.com/YGGverse/ggemtext.git
synced 2026-03-31 17:15:33 +00:00
use to_string method
This commit is contained in:
parent
3b9c1b1b1c
commit
d739181a76
2 changed files with 3 additions and 5 deletions
|
|
@ -25,7 +25,7 @@ impl Multiline {
|
||||||
return Some(Self {
|
return Some(Self {
|
||||||
alt: match alt.is_empty() {
|
alt: match alt.is_empty() {
|
||||||
true => None,
|
true => None,
|
||||||
false => Some(String::from(alt)),
|
false => Some(alt.to_string()),
|
||||||
},
|
},
|
||||||
value: String::new(),
|
value: String::new(),
|
||||||
completed: false,
|
completed: false,
|
||||||
|
|
|
||||||
|
|
@ -19,11 +19,9 @@ impl Quote {
|
||||||
);
|
);
|
||||||
|
|
||||||
// Detect value
|
// Detect value
|
||||||
let value = regex.get(1)?.trim();
|
let value = regex.get(1)?.trim().to_string();
|
||||||
|
|
||||||
// Result
|
// Result
|
||||||
Some(Self {
|
Some(Self { value })
|
||||||
value: String::from(value),
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue