Skip to content

Commit

Permalink
Fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
rdettai committed Jun 26, 2024
1 parent f96e61e commit d8eba16
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions quickwit/quickwit-indexing/src/source/doc_file_reader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
use std::borrow::Borrow;
use std::ffi::OsStr;
use std::io;
use std::path::{Path, PathBuf};
use std::path::Path;

use anyhow::Context;
use async_compression::tokio::bufread::GzipDecoder;
Expand Down Expand Up @@ -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<Self> {
let partition_id = PartitionId::from(filepath.to_string_lossy().borrow());
Expand Down Expand Up @@ -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;

Expand Down Expand Up @@ -286,6 +286,7 @@ pub mod file_test_helpers {
#[cfg(test)]
mod tests {
use std::io::Cursor;
use std::path::PathBuf;

use file_test_helpers::{generate_dummy_doc_file, DUMMY_DOC};
use quickwit_actors::{ActorContext, Universe};
Expand Down

0 comments on commit d8eba16

Please sign in to comment.