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.
starts_with()
1 parent b257d5f commit 78203ccCopy full SHA for 78203cc
src/lib.rs
@@ -885,7 +885,8 @@ fn fill_todo(
885
match dirs {
886
Ok(mut children) => {
887
if options.require_literal_leading_dot {
888
- children.retain(|x| !x.file_name().unwrap().to_str().unwrap().starts_with("."));
+ children
889
+ .retain(|x| !x.file_name().unwrap().to_str().unwrap().starts_with('.'));
890
}
891
children.sort_by(|p1, p2| p2.file_name().cmp(&p1.file_name()));
892
todo.extend(children.into_iter().map(|x| Ok((x, idx))));
0 commit comments