summaryrefslogtreecommitdiff
path: root/cli/cache.rs
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2022-02-24 20:03:12 -0500
committerGitHub <noreply@github.com>2022-02-24 20:03:12 -0500
commit3b12afd0723b288feb7c8c53ac3938a17fd0e57c (patch)
tree8ac398efaef6e59e3ab2278f378706aa44b5641e /cli/cache.rs
parentc59152e4000393ad122855c26198c1d942497c00 (diff)
chore: upgrade to Rust 1.59 (#13767)
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(