ui: remove redundant .to_lowercase() from prompt_yes_no()

This commit is contained in:
Yuya Nishihara 2024-01-23 08:35:15 +09:00
parent 63c4de3cf7
commit 2839922e57

View file

@ -404,7 +404,7 @@ impl Ui {
&["y", "n", "yes", "no", "Yes", "No", "YES", "NO"],
default_choice,
)?;
Ok(choice.to_lowercase().starts_with(['y', 'Y']))
Ok(choice.starts_with(['y', 'Y']))
}
pub fn prompt_password(&mut self, prompt: &str) -> io::Result<String> {