mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-06-15 07:06:36 +00:00
Implement No as default (when only Enter is pressed)
This commit is contained in:
parent
4ed6a1473a
commit
c54b8d001b
1 changed files with 1 additions and 4 deletions
|
@ -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,
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue