correct parse signature

This commit is contained in:
KitsuneCafe 2024-02-04 05:54:49 -05:00
parent 16479964c0
commit 39c3a9e4b2
2 changed files with 6 additions and 6 deletions

10
Cargo.lock generated
View file

@ -144,9 +144,9 @@ checksum = "523dc4f511e55ab87b694dc30d0f820d60906ef06413f93d4d7a1385599cc149"
[[package]]
name = "miniz_oxide"
version = "0.7.1"
version = "0.7.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e7810e0be55b428ada41041c41f32c9f1a42817901b4ccf45fa3d4b6561e74c7"
checksum = "9d811f3e15f28568be3407c8e7fdb6514c1cda3cb30683f15b6a1a1dc4ea14a7"
dependencies = [
"adler",
]
@ -276,7 +276,7 @@ checksum = "c08c74e62047bb2de4ff487b251e4a92e24f48745648451635cec7d591162d9f"
[[package]]
name = "roxy_core"
version = "0.1.0"
source = "git+https://fem.mint.lgbt/kitsunecafe/roxy-core.git#8121a30b0c306ac5e5b48dcee5ea0b7ec12003df"
source = "git+https://fem.mint.lgbt/kitsunecafe/roxy-core.git#dc17ebdb5d18778ba3ea9acddfc9a52214f88ed8"
[[package]]
name = "roxy_syntect"
@ -394,9 +394,9 @@ dependencies = [
[[package]]
name = "time"
version = "0.3.32"
version = "0.3.34"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fe80ced77cbfb4cb91a94bf72b378b4b6791a0d9b7f09d0be747d1bdff4e68bd"
checksum = "c8248b6521bb14bc45b4067159b9b6ad792e2d6d754d6c41fb50e29fefe38749"
dependencies = [
"deranged",
"itoa",

View file

@ -34,7 +34,7 @@ impl<'a> SyntectParser<'a> {
}
impl<'a> Parse for SyntectParser<'a> {
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 file = String::from_utf8_lossy(src).to_string();
let result = CODE_BLOCK_RE
.replace_all(file.as_str(), |captures: &Captures| {