Created
March 27, 2020 16:45
-
-
Save mantono/29e35c226531a9a07b7f66cf2768648e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Before rustfmt config change | |
let files: Vec<PathBuf> = FileWalker::from(dir) | |
.unwrap() | |
.filter(|f| filter_name(f, &pattern)) | |
.collect(); | |
// After rustfmt config change | |
let files: Vec<PathBuf> = | |
FileWalker::from(dir).unwrap().filter(|f| filter_name(f, &pattern)).collect(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment