From 962deccf5af6e39c0ecdc2729b0435672eee574d Mon Sep 17 00:00:00 2001 From: Remi Dettai Date: Mon, 10 Jun 2024 12:38:18 +0000 Subject: [PATCH] Fix clippy --- quickwit/quickwit-indexing/src/source/doc_file_reader.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/quickwit/quickwit-indexing/src/source/doc_file_reader.rs b/quickwit/quickwit-indexing/src/source/doc_file_reader.rs index 80d9e662d46..9a0bb0ba99b 100644 --- a/quickwit/quickwit-indexing/src/source/doc_file_reader.rs +++ b/quickwit/quickwit-indexing/src/source/doc_file_reader.rs @@ -100,7 +100,7 @@ pub struct ReadBatchResponse { impl DocFileReader { pub async fn from_path( checkpoint: &SourceCheckpoint, - filepath: &PathBuf, + filepath: &Path, storage_resolver: &StorageResolver, ) -> anyhow::Result { let partition_id = PartitionId::from(filepath.to_string_lossy().borrow()); @@ -224,7 +224,7 @@ pub(crate) fn dir_and_filename(filepath: &Path) -> anyhow::Result<(Uri, &Path)> Ok((dir_uri, file_name.as_ref())) } -#[cfg(any(test))] +#[cfg(test)] pub mod file_test_helpers { use std::io::Write;