From 304e96bd9c211e83e67085f16117195dcdc2adc0 Mon Sep 17 00:00:00 2001 From: Andrew Radev Date: Tue, 16 Feb 2021 18:44:00 +0200 Subject: [PATCH] Minor clippy fix --- src/bin/id3-image-remove.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin/id3-image-remove.rs b/src/bin/id3-image-remove.rs index a71aa51..7592697 100644 --- a/src/bin/id3-image-remove.rs +++ b/src/bin/id3-image-remove.rs @@ -33,7 +33,7 @@ fn main() { if verbosity >= 0 && confirm { print_prompt(); let mut input = String::new(); - while let Err(_) = io::stdin().read_line(&mut input) { + while io::stdin().read_line(&mut input).is_err() { if verbosity >= 0 { eprintln!("Could not read your input, please try again."); }