@@ -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,15 +113,14 @@ 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) {
122122 eprintln ! (
123- "Warning: Invalid exclude pattern '{}': {}" ,
124- pattern, e
123+ "Warning: Invalid exclude pattern '{pattern}': {e}"
125124 ) ;
126125 }
127126 }
@@ -149,8 +148,7 @@ pub fn process_entries(args: &Cli) -> Result<Vec<FileEntry>> {
149148 let pattern = format ! ( "!{}" , file_path. display( ) ) ;
150149 if let Err ( e) = override_builder. add ( & pattern) {
151150 eprintln ! (
152- "Warning: Could not add file exclude pattern '{}': {}" ,
153- pattern, e
151+ "Warning: Could not add file exclude pattern '{pattern}': {e}"
154152 ) ;
155153 }
156154 }
@@ -195,7 +193,7 @@ pub fn process_entries(args: &Cli) -> Result<Vec<FileEntry>> {
195193 for pattern in includes {
196194 // Include patterns are positive patterns (no ! prefix)
197195 if let Err ( e) = override_builder. add ( pattern) {
198- eprintln ! ( "Warning: Invalid include pattern '{}': {}" , pattern , e ) ;
196+ eprintln ! ( "Warning: Invalid include pattern '{pattern }': {e}" ) ;
199197 }
200198 }
201199 }
@@ -208,14 +206,13 @@ pub fn process_entries(args: &Cli) -> Result<Vec<FileEntry>> {
208206 // Add a '!' prefix if it doesn't already have one
209207 // This makes it a negative pattern (exclude)
210208 let exclude_pattern = if !pattern. starts_with ( '!' ) {
211- format ! ( "!{}" , pattern )
209+ format ! ( "!{pattern}" )
212210 } else {
213211 pattern. clone ( )
214212 } ;
215213 if let Err ( e) = override_builder. add ( & exclude_pattern) {
216214 eprintln ! (
217- "Warning: Invalid exclude pattern '{}': {}" ,
218- pattern, e
215+ "Warning: Invalid exclude pattern '{pattern}': {e}"
219216 ) ;
220217 }
221218 }
@@ -336,7 +333,7 @@ mod tests {
336333 fs:: create_dir_all ( parent) ?;
337334 }
338335 let mut file = File :: create ( & full_path) ?;
339- writeln ! ( file, "{}" , content ) ?;
336+ writeln ! ( file, "{content}" ) ?;
340337 created_files. push ( full_path) ;
341338 }
342339
@@ -393,7 +390,7 @@ mod tests {
393390 // For patterns that should exclude, we need to add a "!" prefix
394391 // to make them negative patterns (exclusions)
395392 let exclude_pattern = if !pattern. starts_with ( '!' ) {
396- format ! ( "!{}" , pattern )
393+ format ! ( "!{pattern}" )
397394 } else {
398395 pattern. clone ( )
399396 } ;
@@ -419,8 +416,7 @@ mod tests {
419416
420417 assert_eq ! (
421418 is_ignored, should_exclude,
422- "Failed for exclude: {:?}" ,
423- exclude
419+ "Failed for exclude: {exclude:?}"
424420 ) ;
425421 }
426422
@@ -587,12 +583,12 @@ mod tests {
587583
588584 // Test with depth limit of 1
589585 cli. max_depth = Some ( 1 ) ;
590- let _ = process_directory ( & cli) ?;
586+ process_directory ( & cli) ?;
591587 // Verify only top-level files were processed
592588
593589 // Test with depth limit of 2
594590 cli. max_depth = Some ( 2 ) ;
595- let _ = process_directory ( & cli) ?;
591+ process_directory ( & cli) ?;
596592 // Verify files up to depth 2 were processed
597593
598594 Ok ( ( ) )
@@ -605,12 +601,12 @@ mod tests {
605601
606602 // Test without hidden files
607603 cli. hidden = false ;
608- let _ = process_directory ( & cli) ?;
604+ process_directory ( & cli) ?;
609605 // Verify hidden files were not processed
610606
611607 // Test with hidden files
612608 cli. hidden = true ;
613- let _ = process_directory ( & cli) ?;
609+ process_directory ( & cli) ?;
614610 // Verify hidden files were processed
615611
616612 Ok ( ( ) )
@@ -622,7 +618,7 @@ mod tests {
622618 let rust_file = files. iter ( ) . find ( |f| f. ends_with ( "main.rs" ) ) . unwrap ( ) ;
623619
624620 let cli = create_test_cli ( rust_file) ;
625- let _ = process_directory ( & cli) ?;
621+ process_directory ( & cli) ?;
626622 // Verify single file was processed correctly
627623
628624 Ok ( ( ) )
0 commit comments