rename variable

This commit is contained in:
yggverse 2024-12-02 22:30:28 +02:00
parent fa1e2d39a2
commit 27a8cad8f0

View File

@ -72,7 +72,7 @@ impl Reader {
buffer.insert_with_tags( buffer.insert_with_tags(
&mut buffer.end_iter(), &mut buffer.end_iter(),
&match syntax.highlight(&code.value, None) { &match syntax.highlight(&code.value, None) {
Some(result) => result, Some(highlight) => highlight,
None => code.value.to_string(), None => code.value.to_string(),
}, },
&[&tag.code.text_tag], &[&tag.code.text_tag],
@ -123,7 +123,7 @@ impl Reader {
buffer.insert_with_tags( buffer.insert_with_tags(
&mut buffer.end_iter(), &mut buffer.end_iter(),
&match syntax.highlight(&this.value, alt) { &match syntax.highlight(&this.value, alt) {
Some(result) => result, Some(highlight) => highlight,
None => this.value.to_string(), None => this.value.to_string(),
}, },
&[&tag.code.text_tag], &[&tag.code.text_tag],