Skip to content

Commit bd7342f

Browse files
committed
Replace starts_with("#") with starts_with('#')
1 parent 2cc8790 commit bd7342f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/repl_cli/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ pub fn main() -> i32 {
6464
if line
6565
.lines()
6666
.map(|ln| ln.trim())
67-
.all(|ln| ln.is_empty() || ln.starts_with("#"))
67+
.all(|ln| ln.is_empty() || ln.starts_with('#'))
6868
{
6969
// if there are only whitespaces and comments, don't run it
7070
println!();

0 commit comments

Comments
 (0)