From 43454f5035be9b07e71596dfddad271db5061495 Mon Sep 17 00:00:00 2001 From: A Farzat Date: Sat, 20 Jun 2026 19:43:18 +0300 Subject: Make remove_paths take origin_base directly Passing normalizer makes both the binary and tests complicated without reducing the complexity of the function signature. --- src/bin/r2md-remove.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/bin/r2md-remove.rs') diff --git a/src/bin/r2md-remove.rs b/src/bin/r2md-remove.rs index 0835668..07c9124 100644 --- a/src/bin/r2md-remove.rs +++ b/src/bin/r2md-remove.rs @@ -1,7 +1,7 @@ use std::{io, path::PathBuf}; use clap::Parser; -use repo2markdown::{normalizer::Normalizer, path_list_editor::remove_paths}; +use repo2markdown::path_list_editor::remove_paths; /// Remove paths from a null-separated file list from stdin. #[derive(Debug, Parser)] @@ -18,13 +18,11 @@ struct Cli { fn main() -> Result<(), Box> { let cli = Cli::parse(); - let normalizer = Normalizer::new(&cli.origin, &cli.origin)?; - remove_paths( io::stdin().lock(), io::stdout().lock(), &cli.paths, - &normalizer, + &cli.origin, ) } -- cgit v1.3.1