@@ -100,7 +100,7 @@ pub fn process_entries(args: &Cli) -> Result<Vec<FileEntry>> {
100100 for pattern in includes {
101101 // Include patterns are positive patterns (no ! prefix)
102102 if let Err ( e) = override_builder. add ( pattern) {
103- eprintln ! ( "Warning: Invalid include pattern '{}': {}" , pattern , e ) ;
103+ eprintln ! ( "Warning: Invalid include pattern '{pattern }': {e}" ) ;
104104 }
105105 }
106106 }
@@ -113,16 +113,13 @@ pub fn process_entries(args: &Cli) -> Result<Vec<FileEntry>> {
113113 // Add a '!' prefix if it doesn't already have one
114114 // This makes it a negative pattern (exclude)
115115 let exclude_pattern = if !pattern. starts_with ( '!' ) {
116- format ! ( "!{}" , pattern )
116+ format ! ( "!{pattern}" )
117117 } else {
118118 pattern. clone ( )
119119 } ;
120120
121121 if let Err ( e) = override_builder. add ( & exclude_pattern) {
122- eprintln ! (
123- "Warning: Invalid exclude pattern '{}': {}" ,
124- pattern, e
125- ) ;
122+ eprintln ! ( "Warning: Invalid exclude pattern '{pattern}': {e}" ) ;
126123 }
127124 }
128125 Exclude :: File ( file_path) => {
@@ -149,8 +146,7 @@ pub fn process_entries(args: &Cli) -> Result<Vec<FileEntry>> {
149146 let pattern = format ! ( "!{}" , file_path. display( ) ) ;
150147 if let Err ( e) = override_builder. add ( & pattern) {
151148 eprintln ! (
152- "Warning: Could not add file exclude pattern '{}': {}" ,
153- pattern, e
149+ "Warning: Could not add file exclude pattern '{pattern}': {e}"
154150 ) ;
155151 }
156152 }
@@ -195,7 +191,7 @@ pub fn process_entries(args: &Cli) -> Result<Vec<FileEntry>> {
195191 for pattern in includes {
196192 // Include patterns are positive patterns (no ! prefix)
197193 if let Err ( e) = override_builder. add ( pattern) {
198- eprintln ! ( "Warning: Invalid include pattern '{}': {}" , pattern , e ) ;
194+ eprintln ! ( "Warning: Invalid include pattern '{pattern }': {e}" ) ;
199195 }
200196 }
201197 }
@@ -208,14 +204,13 @@ pub fn process_entries(args: &Cli) -> Result<Vec<FileEntry>> {
208204 // Add a '!' prefix if it doesn't already have one
209205 // This makes it a negative pattern (exclude)
210206 let exclude_pattern = if !pattern. starts_with ( '!' ) {
211- format ! ( "!{}" , pattern )
207+ format ! ( "!{pattern}" )
212208 } else {
213209 pattern. clone ( )
214210 } ;
215211 if let Err ( e) = override_builder. add ( & exclude_pattern) {
216212 eprintln ! (
217- "Warning: Invalid exclude pattern '{}': {}" ,
218- pattern, e
213+ "Warning: Invalid exclude pattern '{pattern}': {e}"
219214 ) ;
220215 }
221216 }
@@ -336,7 +331,7 @@ mod tests {
336331 fs:: create_dir_all ( parent) ?;
337332 }
338333 let mut file = File :: create ( & full_path) ?;
339- writeln ! ( file, "{}" , content ) ?;
334+ writeln ! ( file, "{content}" ) ?;
340335 created_files. push ( full_path) ;
341336 }
342337
@@ -393,7 +388,7 @@ mod tests {
393388 // For patterns that should exclude, we need to add a "!" prefix
394389 // to make them negative patterns (exclusions)
395390 let exclude_pattern = if !pattern. starts_with ( '!' ) {
396- format ! ( "!{}" , pattern )
391+ format ! ( "!{pattern}" )
397392 } else {
398393 pattern. clone ( )
399394 } ;
@@ -419,8 +414,7 @@ mod tests {
419414
420415 assert_eq ! (
421416 is_ignored, should_exclude,
422- "Failed for exclude: {:?}" ,
423- exclude
417+ "Failed for exclude: {exclude:?}"
424418 ) ;
425419 }
426420
@@ -587,12 +581,12 @@ mod tests {
587581
588582 // Test with depth limit of 1
589583 cli. max_depth = Some ( 1 ) ;
590- let _ = process_directory ( & cli) ?;
584+ process_directory ( & cli) ?;
591585 // Verify only top-level files were processed
592586
593587 // Test with depth limit of 2
594588 cli. max_depth = Some ( 2 ) ;
595- let _ = process_directory ( & cli) ?;
589+ process_directory ( & cli) ?;
596590 // Verify files up to depth 2 were processed
597591
598592 Ok ( ( ) )
@@ -605,12 +599,12 @@ mod tests {
605599
606600 // Test without hidden files
607601 cli. hidden = false ;
608- let _ = process_directory ( & cli) ?;
602+ process_directory ( & cli) ?;
609603 // Verify hidden files were not processed
610604
611605 // Test with hidden files
612606 cli. hidden = true ;
613- let _ = process_directory ( & cli) ?;
607+ process_directory ( & cli) ?;
614608 // Verify hidden files were processed
615609
616610 Ok ( ( ) )
@@ -622,7 +616,7 @@ mod tests {
622616 let rust_file = files. iter ( ) . find ( |f| f. ends_with ( "main.rs" ) ) . unwrap ( ) ;
623617
624618 let cli = create_test_cli ( rust_file) ;
625- let _ = process_directory ( & cli) ?;
619+ process_directory ( & cli) ?;
626620 // Verify single file was processed correctly
627621
628622 Ok ( ( ) )
0 commit comments