mirror of
https://github.com/YGGverse/ggemtext.git
synced 2026-04-01 01:25:34 +00:00
use to_string method
This commit is contained in:
parent
3b9c1b1b1c
commit
d739181a76
2 changed files with 3 additions and 5 deletions
|
|
@ -19,11 +19,9 @@ impl Quote {
|
|||
);
|
||||
|
||||
// Detect value
|
||||
let value = regex.get(1)?.trim();
|
||||
let value = regex.get(1)?.trim().to_string();
|
||||
|
||||
// Result
|
||||
Some(Self {
|
||||
value: String::from(value),
|
||||
})
|
||||
Some(Self { value })
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue