From 39c3a9e4b2f294936df5141b717efcbbe22deea7 Mon Sep 17 00:00:00 2001 From: KitsuneCafe <10284516+kitsunecafe@users.noreply.github.com> Date: Sun, 4 Feb 2024 05:54:49 -0500 Subject: [PATCH] correct parse signature --- Cargo.lock | 10 +++++----- src/lib.rs | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 9bc1eb1..bfb3bd2 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -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", diff --git a/src/lib.rs b/src/lib.rs index ecbd892..343882f 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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) -> std::io::Result<()> { + fn parse(&mut self, _path: &str, src: &[u8], dst: &mut Vec) -> 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| {