correct parse signature

This commit is contained in:
KitsuneCafe 2024-02-04 05:53:24 -05:00
parent 5c33c0c262
commit 54cfd04c53
1 changed files with 2 additions and 2 deletions

View File

@ -19,7 +19,7 @@ impl MarkdownTeraPreformatter {
}
impl Parse for MarkdownTeraPreformatter {
fn parse(&mut self, path: &str, src: &[u8], dst: &mut Vec<u8>) -> std::io::Result<()> {
fn parse(&mut self, path: &str, src: &[u8], dst: &mut Vec<u8>) -> Result<(), roxy_core::error::Error> {
let str = String::from_utf8_lossy(src).to_string();
let result = PLACEHOLDER_RE
.replace_all(str.as_str(), |captures: &Captures| {
@ -49,7 +49,7 @@ impl MarkdownTeraRewriter {
}
impl Parse for MarkdownTeraRewriter {
fn parse(&mut self, _path: &str, src: &[u8], dst: &mut Vec<u8>) -> std::io::Result<()> {
fn parse(&mut self, _path: &str, src: &[u8], dst: &mut Vec<u8>) -> Result<(), roxy_core::error::Error> {
let utf8 = String::from_utf8_lossy(src).to_string();
let result = EXTENSION_RE
.replace_all(utf8.as_str(), |captures: &Captures| {