From c54b8d001b9d017fcd6d4b444f00943108d5d850 Mon Sep 17 00:00:00 2001 From: "gitlab.com/pepa65" Date: Wed, 30 Oct 2024 14:02:03 +0700 Subject: [PATCH] Implement No as default (when only Enter is pressed) --- crates/bin/src/ui.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/crates/bin/src/ui.rs b/crates/bin/src/ui.rs index 2e788089..2acfe6a6 100644 --- a/crates/bin/src/ui.rs +++ b/crates/bin/src/ui.rs @@ -35,10 +35,7 @@ pub async fn confirm() -> Result<(), BinstallError> { match input.as_str().trim() { "yes" | "y" | "YES" | "Y" => break true, - "no" | "n" | "NO" | "N" | "" => break false, - _ => { - input.clear(); - continue; + _ => => break false, } } };