From dc08e373209146d4bf4dd2957b74128b76dfd355 Mon Sep 17 00:00:00 2001 From: Eric Huss Date: Sat, 13 May 2023 09:44:50 -0700 Subject: [PATCH] Apply clippy::borrow_deref_ref --- src/cmd/init.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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") }