correct parse signature
This commit is contained in:
parent
5c33c0c262
commit
54cfd04c53
|
@ -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| {
|
||||
|
|
Loading…
Reference in a new issue