Use Rust stable compatible tuple reference in filter

This commit is contained in:
timvisee 2018-04-22 16:30:31 +02:00
parent 943f309e98
commit e7d3064ad7
No known key found for this signature in database
GPG key ID: 109CBA0BF74036C2

View file

@ -132,7 +132,7 @@ impl History {
// Get the indices of files that have expired
let expired_indices: Vec<usize> = self.files.iter()
.enumerate()
.filter(|(_, f)| f.id() == file.id())
.filter(|&(_, f)| f.id() == file.id())
.map(|(i, _)| i)
.collect();