mirror of
https://github.com/timvisee/ffsend.git
synced 2025-10-03 09:39:15 +02:00
Use Rust stable compatible tuple reference in filter
This commit is contained in:
parent
943f309e98
commit
e7d3064ad7
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue