Skip to content

Commit 78203cc

Browse files
committed
Use char rather than &str as starts_with() argument
1 parent b257d5f commit 78203cc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -885,7 +885,8 @@ fn fill_todo(
885885
match dirs {
886886
Ok(mut children) => {
887887
if options.require_literal_leading_dot {
888-
children.retain(|x| !x.file_name().unwrap().to_str().unwrap().starts_with("."));
888+
children
889+
.retain(|x| !x.file_name().unwrap().to_str().unwrap().starts_with('.'));
889890
}
890891
children.sort_by(|p1, p2| p2.file_name().cmp(&p1.file_name()));
891892
todo.extend(children.into_iter().map(|x| Ok((x, idx))));

0 commit comments

Comments
 (0)