We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
require_literal_leading_dot
1 parent 79928b0 commit 5b4c530Copy full SHA for 5b4c530
src/lib.rs
@@ -965,9 +965,7 @@ fn fill_todo(
965
match dirs {
966
Ok(mut children) => {
967
if options.require_literal_leading_dot {
968
- children.retain(|x| {
969
- !x.0.file_name().unwrap().to_str().unwrap().starts_with('.')
970
- });
+ children.retain(|x| !x.1.to_str().unwrap().starts_with('.'));
971
}
972
children.sort_by(|p1, p2| p2.1.cmp(&p1.1));
973
todo.extend(children.into_iter().map(|x| Ok((x.0, idx))));
0 commit comments