From 9ecea24a89976ca4f2f317c6b8e3b64ca8361f49 Mon Sep 17 00:00:00 2001 From: keorn Date: Fri, 21 Oct 2016 10:10:12 +0100 Subject: [PATCH] fix warning --- dapps/src/apps/cache.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dapps/src/apps/cache.rs b/dapps/src/apps/cache.rs index 54c1354cd..c9ca12db9 100644 --- a/dapps/src/apps/cache.rs +++ b/dapps/src/apps/cache.rs @@ -47,7 +47,7 @@ impl ContentCache { } pub fn clear_garbage(&mut self, expected_size: usize) -> Vec<(String, ContentStatus)> { - let mut len = self.cache.len(); + let len = self.cache.len(); if len <= expected_size { return Vec::new();