diff options
author | Jiayi Zhao <jeff.no.zhao@gmail.com> | 2019-02-20 19:51:06 -0500 |
---|---|---|
committer | Jiayi Zhao <jeff.no.zhao@gmail.com> | 2019-02-20 19:51:54 -0500 |
commit | f75182734a5bec0987b424aff28e2ed0acf2fe38 (patch) | |
tree | cb483f5a020057f1856fcf6c507337be6775f2bf /src/sort.rs | |
parent | c829e7849a44922cb55149f3874a82cda1040c89 (diff) |
reduce eprintln
Diffstat (limited to 'src/sort.rs')
-rw-r--r-- | src/sort.rs | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/sort.rs b/src/sort.rs index cbfc635..084ae57 100644 --- a/src/sort.rs +++ b/src/sort.rs @@ -88,10 +88,7 @@ fn filter_default( match result { Ok(direntry) => match structs::JoshutoDirEntry::from(&direntry) { Ok(s) => Some(s), - Err(e) => { - eprintln!("error: {:?}", e); - None - } + Err(e) => None, }, Err(_) => None, } @@ -108,10 +105,7 @@ fn filter_hidden_files( } else { match structs::JoshutoDirEntry::from(&direntry) { Ok(s) => Some(s), - Err(e) => { - eprintln!("error: {:?}", e); - None - } + Err(e) => None, } } } |