Skip to content

Commit a21b3c0

Browse files
committed
fix: remove duplicate doc comment and allow single_call_fn for index
The index() function is a public API entry point called from main.rs, so single_call_fn is expected and allowed with justification.
1 parent 8248531 commit a21b3c0

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

crates/uffs-cli/src/commands.rs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -624,17 +624,15 @@ async fn search_multi_drive_filtered(
624624
bail!("Multi-drive search is only supported on Windows")
625625
}
626626

627-
/// Build an index from a drive's MFT.
627+
/// Build an index from drive MFT(s).
628628
///
629629
/// Supports both single drive (`--drive C`) and multiple drives (`--drives
630630
/// C,D,E`). When multiple drives are specified, they are read concurrently and
631631
/// merged into a single `DataFrame` with a `drive` column.
632-
633-
/// Build an index from a drive's MFT.
634632
///
635-
/// The drive is inferred from the output path if not explicitly specified:
636-
/// - Absolute path with drive: `C:\foo\bar.parquet` → indexes C:
637-
/// - Relative path: `bar.parquet` → indexes drive of current directory
633+
/// If no drives are specified, indexes ALL available NTFS drives.
634+
// Public API entry point - called from main.rs command dispatch
635+
#[allow(clippy::single_call_fn)]
638636
pub async fn index(
639637
output_path: PathBuf,
640638
single_drive: Option<char>,

0 commit comments

Comments
 (0)