mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-01-15 01:00:02 +00:00
remove extra getter
This commit is contained in:
parent
cc9b86caf3
commit
048d6830e1
@ -204,7 +204,7 @@ impl Reader {
|
|||||||
// Append value to buffer
|
// Append value to buffer
|
||||||
buffer.insert_with_tags(
|
buffer.insert_with_tags(
|
||||||
&mut buffer.end_iter(),
|
&mut buffer.end_iter(),
|
||||||
header.value.as_str(),
|
&header.value,
|
||||||
&[match header.level {
|
&[match header.level {
|
||||||
Level::H1 => &tag.h1,
|
Level::H1 => &tag.h1,
|
||||||
Level::H2 => &tag.h2,
|
Level::H2 => &tag.h2,
|
||||||
@ -289,11 +289,7 @@ impl Reader {
|
|||||||
// Is quote
|
// Is quote
|
||||||
if let Some(quote) = Quote::from(line) {
|
if let Some(quote) = Quote::from(line) {
|
||||||
// Append value to buffer
|
// Append value to buffer
|
||||||
buffer.insert_with_tags(
|
buffer.insert_with_tags(&mut buffer.end_iter(), "e.value, &[&tag.quote]);
|
||||||
&mut buffer.end_iter(),
|
|
||||||
quote.value.as_str(),
|
|
||||||
&[&tag.quote],
|
|
||||||
);
|
|
||||||
buffer.insert(&mut buffer.end_iter(), NEW_LINE);
|
buffer.insert(&mut buffer.end_iter(), NEW_LINE);
|
||||||
|
|
||||||
// Skip other actions for this line
|
// Skip other actions for this line
|
||||||
|
Loading…
x
Reference in New Issue
Block a user