fn rustfmt( src: &Path, rustfmt: &Path, paths: &[PathBuf], check: bool, ) -> impl FnMut(bool) -> bool