From 01adcf8842752cbc475a26245a1995cef7e92957 Mon Sep 17 00:00:00 2001 From: Abdulla Abdurakhmanov Date: Mon, 5 Aug 2024 10:14:24 +0200 Subject: [PATCH] Clippy fixes --- src/redacters/ms_presidio.rs | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/redacters/ms_presidio.rs b/src/redacters/ms_presidio.rs index 347d7e5..7d64cf0 100644 --- a/src/redacters/ms_presidio.rs +++ b/src/redacters/ms_presidio.rs @@ -167,14 +167,12 @@ impl<'a> MsPresidioRedacter<'a> { let redacted_image_bytes = response.bytes().await?; Ok(RedacterDataItemContent::Image { mime_type, - data: redacted_image_bytes.into(), + data: redacted_image_bytes, }) } - _ => { - return Err(AppError::SystemError { - message: "Unsupported item for image redacting".to_string(), - }); - } + _ => Err(AppError::SystemError { + message: "Unsupported item for image redacting".to_string(), + }), } } }