summaryrefslogtreecommitdiff
path: root/cli/cache.rs
diff options
context:
space:
mode:
Diffstat (limited to 'cli/cache.rs')
-rw-r--r--cli/cache.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/cli/cache.rs b/cli/cache.rs
index 8bd40fc8a..586912495 100644
--- a/cli/cache.rs
+++ b/cli/cache.rs
@@ -198,8 +198,7 @@ impl Cacher for FetchCacher {
.disk_cache
.get(&filename)
.ok()
- .map(|b| String::from_utf8(b).ok())
- .flatten()
+ .and_then(|b| String::from_utf8(b).ok())
}
fn set(