From 0e4024337fb8bff46053803e7d3175cf1cd5135e Mon Sep 17 00:00:00 2001 From: Hatter Jiang Date: Tue, 28 Apr 2020 00:42:17 +0800 Subject: [PATCH] unwrap_or -> ok --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index 3ccb0ec..fea1d25 100644 --- a/src/main.rs +++ b/src/main.rs @@ -81,7 +81,7 @@ fn find_huge_files(options: &Options, dir_path: &Path) { print_lastline(&get_term_width_message(&format!("Scanning: {}", p_str), 10)); } true - }).unwrap_or(()); + }).ok(); clear_n_print_message(MessageType::OK, &format!("Total file count: {}, huge file count: {}, total huge file size: {}", total_file_count_cell.into_inner(), huge_file_count_cell.into_inner(), @@ -196,7 +196,7 @@ fn find_text_files(options: &Options, dir_path: &Path) { print_lastline(&get_term_width_message(&format!("Scanning: {}", p_str), 10)); } true - }).unwrap_or(()); + }).ok(); print_lastline(EMPTY); print_message(MessageType::OK, &format!("Total dir count: {}, scaned dir count: {}", total_dir_count_cell.into_inner(),