Skip to content

Commit 4b52009

Browse files
committed
Use char rather than &str as starts_with() argument
1 parent 7451536 commit 4b52009

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
@@ -935,7 +935,7 @@ fn fill_todo(
935935
Ok(mut children) => {
936936
if options.require_literal_leading_dot {
937937
children
938-
.retain(|x| !x.file_name().unwrap().to_str().unwrap().starts_with("."));
938+
.retain(|x| !x.file_name().unwrap().to_str().unwrap().starts_with('.'));
939939
}
940940
children.sort_by(|p1, p2| p2.file_name().cmp(&p1.file_name()));
941941
todo.extend(children.into_iter().map(|x| Ok((x, idx))));

0 commit comments

Comments
 (0)