fix warning
This commit is contained in:
parent
b2da168ff2
commit
9ecea24a89
@ -47,7 +47,7 @@ impl ContentCache {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pub fn clear_garbage(&mut self, expected_size: usize) -> Vec<(String, ContentStatus)> {
|
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 {
|
if len <= expected_size {
|
||||||
return Vec::new();
|
return Vec::new();
|
||||||
|
Loading…
Reference in New Issue
Block a user