From 25902a948e7a90456179404c0722cfda5e988d1a Mon Sep 17 00:00:00 2001 From: Samuel Tardieu Date: Fri, 22 Dec 2023 21:10:52 +0100 Subject: [PATCH] Use char rather than &str as `starts_with()` argument --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index bf5eafa..a4fe63e 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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))));