From e7d3064ad70d6785075e6e69f6d4f504c56f762d Mon Sep 17 00:00:00 2001 From: timvisee Date: Sun, 22 Apr 2018 16:30:31 +0200 Subject: [PATCH] Use Rust stable compatible tuple reference in filter --- cli/src/history.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/src/history.rs b/cli/src/history.rs index 1867787..cf852e6 100644 --- a/cli/src/history.rs +++ b/cli/src/history.rs @@ -132,7 +132,7 @@ impl History { // Get the indices of files that have expired let expired_indices: Vec = self.files.iter() .enumerate() - .filter(|(_, f)| f.id() == file.id()) + .filter(|&(_, f)| f.id() == file.id()) .map(|(i, _)| i) .collect();