mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-03-31 16:45:27 +00:00
remove extra getter
This commit is contained in:
parent
cc9b86caf3
commit
048d6830e1
1 changed files with 2 additions and 6 deletions
|
|
@ -204,7 +204,7 @@ impl Reader {
|
|||
// Append value to buffer
|
||||
buffer.insert_with_tags(
|
||||
&mut buffer.end_iter(),
|
||||
header.value.as_str(),
|
||||
&header.value,
|
||||
&[match header.level {
|
||||
Level::H1 => &tag.h1,
|
||||
Level::H2 => &tag.h2,
|
||||
|
|
@ -289,11 +289,7 @@ impl Reader {
|
|||
// Is quote
|
||||
if let Some(quote) = Quote::from(line) {
|
||||
// Append value to buffer
|
||||
buffer.insert_with_tags(
|
||||
&mut buffer.end_iter(),
|
||||
quote.value.as_str(),
|
||||
&[&tag.quote],
|
||||
);
|
||||
buffer.insert_with_tags(&mut buffer.end_iter(), "e.value, &[&tag.quote]);
|
||||
buffer.insert(&mut buffer.end_iter(), NEW_LINE);
|
||||
|
||||
// Skip other actions for this line
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue