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 5ffbfe8 commit cb4da62Copy full SHA for cb4da62
src/lib.rs
@@ -939,7 +939,7 @@ fn fill_todo(
939
Ok(mut children) => {
940
if options.require_literal_leading_dot {
941
children
942
- .retain(|x| !x.file_name().unwrap().to_str().unwrap().starts_with("."));
+ .retain(|x| !x.file_name().unwrap().to_str().unwrap().starts_with('.'));
943
}
944
children.sort_by(|p1, p2| p2.file_name().cmp(&p1.file_name()));
945
todo.extend(children.into_iter().map(|x| Ok((x, idx))));
0 commit comments