fixed clippy errors
Rust lint and build / Rust CI (push) Failing after 46s

This commit is contained in:
2026-06-03 09:48:47 +02:00
parent 81d775a7dd
commit 09b1600779
5 changed files with 23 additions and 22 deletions
+2 -2
View File
@@ -85,7 +85,7 @@ impl<'a> Iterator for Renderer<'a> {
Event::Start(Tag::CodeBlock(kind)) => {
let mut code_content = String::new();
while let Some(inner_event) = self.inner.next() {
for inner_event in self.inner.by_ref() {
match inner_event {
Event::End(TagEnd::CodeBlock) => break,
Event::Text(code) => code_content.push_str(&code),
@@ -111,7 +111,7 @@ impl<'a> Iterator for Renderer<'a> {
);
Some(Event::Html(CowStr::Boxed(rendered_html.into_boxed_str())))
}
_ => return Some(event),
_ => Some(event),
}
}
}