Skip to content

Instantly share code, notes, and snippets.

@mantono
Created March 27, 2020 16:45
Show Gist options
  • Save mantono/29e35c226531a9a07b7f66cf2768648e to your computer and use it in GitHub Desktop.
Save mantono/29e35c226531a9a07b7f66cf2768648e to your computer and use it in GitHub Desktop.
// 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