File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -75,10 +75,7 @@ impl Orchestrator {
7575 } ) ;
7676 }
7777 }
78- let results: Vec < _ > = matches
79- . par_iter ( )
80- . map ( |fm| parse_one ( fm, db) )
81- . collect ( ) ;
78+ let results: Vec < _ > = matches. par_iter ( ) . map ( |fm| parse_one ( fm, db) ) . collect ( ) ;
8279 let mut parsed = Vec :: with_capacity ( results. len ( ) ) ;
8380 let mut skipped = 0u64 ;
8481 for r in results {
Original file line number Diff line number Diff line change @@ -105,15 +105,21 @@ fn sync_paths_skips_mtime_only_touch() {
105105 )
106106 . unwrap ( ) ;
107107
108- orch. sync_paths ( & db, std:: slice:: from_ref ( & fixture) ) . unwrap ( ) ;
108+ orch. sync_paths ( & db, std:: slice:: from_ref ( & fixture) )
109+ . unwrap ( ) ;
109110 let indexed = db. stats ( ) . unwrap ( ) . files ;
110111 assert ! ( indexed >= 1 , "fixture should be indexed" ) ;
111112
112113 let later = SystemTime :: now ( ) + Duration :: from_secs ( 5 ) ;
113- filetime:: set_file_mtime ( fixture. as_std_path ( ) , filetime:: FileTime :: from_system_time ( later) )
114- . unwrap ( ) ;
114+ filetime:: set_file_mtime (
115+ fixture. as_std_path ( ) ,
116+ filetime:: FileTime :: from_system_time ( later) ,
117+ )
118+ . unwrap ( ) ;
115119
116- let stats = orch. sync_paths ( & db, std:: slice:: from_ref ( & fixture) ) . unwrap ( ) ;
120+ let stats = orch
121+ . sync_paths ( & db, std:: slice:: from_ref ( & fixture) )
122+ . unwrap ( ) ;
117123 assert_eq ! ( stats. files, 0 , "mtime-only touch must not re-index" ) ;
118124 assert ! ( stats. skipped >= 1 , "expected skip, got {:?}" , stats) ;
119125}
You can’t perform that action at this time.
0 commit comments