Fix some comments by Clippy

This commit is contained in:
Roey Darwish Dror
2018-09-06 15:17:03 +03:00
parent 1c317f5332
commit 9f5d5a8b53
2 changed files with 9 additions and 8 deletions

View File

@@ -71,7 +71,7 @@ impl Terminal {
if self.width.is_none() {
return false;
}
println!("");
println!();
loop {
let mut result = String::new();
@@ -82,7 +82,7 @@ impl Terminal {
let _ = self.stdout.reset();
let _ = self.stdout.flush();
if let Ok(_) = stdin().read_line(&mut result) {
if stdin().read_line(&mut result).is_ok() {
match result.as_str() {
"y\n" | "Y\n" => return true,
"n\n" | "N\n" | "\n" => return false,