remove extra getter

This commit is contained in:
yggverse 2024-12-17 03:37:30 +02:00
parent cc9b86caf3
commit 048d6830e1

View File

@ -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(), &quote.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