From 28285d43e68374868d765babe0e43c47165fc804 Mon Sep 17 00:00:00 2001 From: Anne-Sylvie Deutsch Date: Mon, 26 Feb 2024 16:52:17 +0000 Subject: [PATCH] fix clippy errors --- cli/src/commands/parse/emls.rs | 2 +- cli/src/commands/parse/mod.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cli/src/commands/parse/emls.rs b/cli/src/commands/parse/emls.rs index 02a4763..a728323 100644 --- a/cli/src/commands/parse/emls.rs +++ b/cli/src/commands/parse/emls.rs @@ -78,7 +78,7 @@ pub fn parse(client: &Client, args: &ParseEmlArgs, pool: &mut Pool) -> Result<() let result = upload_batch_of_new_emails( client, &bucket.full_name(), - &chunk.into(), + chunk, *no_charge, &statistics, ); diff --git a/cli/src/commands/parse/mod.rs b/cli/src/commands/parse/mod.rs index e370a0b..04379b1 100644 --- a/cli/src/commands/parse/mod.rs +++ b/cli/src/commands/parse/mod.rs @@ -100,7 +100,7 @@ pub fn get_files_in_directory(directory: &PathBuf, extension: &str) -> Result, + emails: &[NewEmail], no_charge: bool, statistics: &Arc, ) -> Result<()> { @@ -112,7 +112,7 @@ fn upload_batch_of_new_emails( fn upload_batch_of_documents( client: &Client, source: &Source, - documents: &Vec, + documents: &[Document], transform_tag: &TransformTag, no_charge: bool, statistics: &Arc,