Skip to content

Commit

Permalink
chore: Ver up
Browse files Browse the repository at this point in the history
  • Loading branch information
abdolence committed Dec 22, 2024
1 parent e82fd63 commit 00f7943
Show file tree
Hide file tree
Showing 4 changed files with 64 additions and 44 deletions.
102 changes: 61 additions & 41 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "redacter"
version = "0.11.1"
version = "0.12.0"
edition = "2021"
authors = ["Abdulla Abdurakhmanov <[email protected]>"]
license = "Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion src/file_converters/ocr_ocrs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ impl<'a> Ocrs<'a> {
}
}

impl<'a> Ocr for Ocrs<'a> {
impl Ocr for Ocrs<'_> {
fn image_to_text(&self, image: image::DynamicImage) -> AppResult<Vec<TextImageCoords>> {
let rgb_image = image.to_rgb8();
let image_source = ImageSource::from_bytes(rgb_image.as_raw(), rgb_image.dimensions())?;
Expand Down
2 changes: 1 addition & 1 deletion src/redacters/stream_redacter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ impl<'a> StreamRedacter<'a> {
&'a self,
redacters: &'a Vec<Redacters<'a>>,
file_ref: &FileSystemRef,
) -> AppResult<StreamRedactPlan> {
) -> AppResult<StreamRedactPlan<'a>> {
let mut stream_redact_plan = StreamRedactPlan {
apply_pdf_image_converter: false,
apply_ocr: false,
Expand Down

0 comments on commit 00f7943

Please sign in to comment.