Skip to content

Commit cb4da62

Browse files
committed
Use char rather than &str as starts_with() argument
1 parent 5ffbfe8 commit cb4da62

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -939,7 +939,7 @@ fn fill_todo(
939939
Ok(mut children) => {
940940
if options.require_literal_leading_dot {
941941
children
942-
.retain(|x| !x.file_name().unwrap().to_str().unwrap().starts_with("."));
942+
.retain(|x| !x.file_name().unwrap().to_str().unwrap().starts_with('.'));
943943
}
944944
children.sort_by(|p1, p2| p2.file_name().cmp(&p1.file_name()));
945945
todo.extend(children.into_iter().map(|x| Ok((x, idx))));

0 commit comments

Comments
 (0)