B:BD[
3.375] → [
3.375:648]
B:BD[
3.648] → [
2.454:658]
B:BD[
3.776] → [
3.776:784]
let processors_clone = Arc::clone(&processors);
let debouncer = MixedEventDebouncer::new(move |file: File| {
let processor = &processors_clone[&file.wd];
let filename = processor.path.join(&file.name);
println!("Processing {:?}", filename);
process(
&filename,
&processor.command,
&processor.args[..],
processor.keep_file,
)
.unwrap_or_else(|e| eprintln!("Error: {}", e));
});
let debouncer = {
let processors = processors.clone();
MixedEventDebouncer::new(move |file: File| {
let processor = &processors[&file.wd];
let filename = processor.path.join(&file.name);
println!("Processing {:?}", filename);
process(
&filename,
&processor.command,
&processor.args[..],
processor.keep_file,
)
.unwrap_or_else(|e| eprintln!("Error: {}", e));
})
};