equal
deleted
inserted
replaced
305 } |
305 } |
306 |
306 |
307 /// Dispatch a single entry (file, folder, symlink...) found during `traverse`. |
307 /// Dispatch a single entry (file, folder, symlink...) found during `traverse`. |
308 /// If the entry is a folder that needs to be traversed, it will be handled |
308 /// If the entry is a folder that needs to be traversed, it will be handled |
309 /// in a separate thread. |
309 /// in a separate thread. |
310 |
|
311 fn handle_traversed_entry<'a>( |
310 fn handle_traversed_entry<'a>( |
312 scope: &rayon::Scope<'a>, |
311 scope: &rayon::Scope<'a>, |
313 files_sender: &'a crossbeam::Sender<IoResult<(HgPathBuf, Dispatch)>>, |
312 files_sender: &'a crossbeam::Sender<IoResult<(HgPathBuf, Dispatch)>>, |
314 matcher: &'a (impl Matcher + Sync), |
313 matcher: &'a (impl Matcher + Sync), |
315 root_dir: impl AsRef<Path> + Sync + Send + Copy + 'a, |
314 root_dir: impl AsRef<Path> + Sync + Send + Copy + 'a, |