Skip to content

Commit

Permalink
Use char rather than &str as starts_with() argument
Browse files Browse the repository at this point in the history
  • Loading branch information
samueltardieu committed Dec 29, 2024
1 parent 56be6e1 commit 25902a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -939,7 +939,7 @@ fn fill_todo(
Ok(mut children) => {
if options.require_literal_leading_dot {
children
.retain(|x| !x.file_name().unwrap().to_str().unwrap().starts_with("."));
.retain(|x| !x.file_name().unwrap().to_str().unwrap().starts_with('.'));
}
children.sort_by(|p1, p2| p2.file_name().cmp(&p1.file_name()));
todo.extend(children.into_iter().map(|x| Ok((x, idx))));
Expand Down

0 comments on commit 25902a9

Please sign in to comment.