diff --git a/src/cmd/init.rs b/src/cmd/init.rs index 55d90081..2c6415b6 100644 --- a/src/cmd/init.rs +++ b/src/cmd/init.rs @@ -116,5 +116,5 @@ fn confirm() -> bool { io::stdout().flush().unwrap(); let mut s = String::new(); io::stdin().read_line(&mut s).ok(); - matches!(&*s.trim(), "Y" | "y" | "yes" | "Yes") + matches!(s.trim(), "Y" | "y" | "yes" | "Yes") }