From 64f90e1897f1e3c823901de9db4fd1d7b805ad3e Mon Sep 17 00:00:00 2001 From: KitsuneCafe <10284516+kitsunecafe@users.noreply.github.com> Date: Sun, 4 Feb 2024 06:02:24 -0500 Subject: [PATCH] correct parse signature --- src/lib.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index ae34de5..36ef40a 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -10,10 +10,11 @@ impl MarkdownParser { } impl Parse for MarkdownParser { - fn parse(&mut self, _path: &str, src: &[u8], dst: &mut Vec) -> std::io::Result<()> { + fn parse(&mut self, _path: &str, src: &[u8], dst: &mut Vec) -> Result<(), roxy_core::error::Error> { let src = String::from_utf8_lossy(src).to_string(); let parser = pulldown_cmark::Parser::new(src.as_str()); - pulldown_cmark::html::write_html(dst, parser) + pulldown_cmark::html::write_html(dst, parser)?; + Ok(()) } }