mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-25 12:34:19 +00:00
Use .flatten
instead of .filter_map(|o| o)
This commit is contained in:
parent
2575f2429a
commit
a705e2fae4
1 changed files with 1 additions and 1 deletions
|
@ -115,7 +115,7 @@ impl BroochService {
|
|||
let mut matches = guild.matches
|
||||
.context("La richiesta è riuscita, ma non sono state ricevute informazioni sulle partite della gilda da STRATZ.")?
|
||||
.into_iter()
|
||||
.filter_map(|o| o)
|
||||
.flatten()
|
||||
.collect::<Vec<Match>>();
|
||||
|
||||
log::trace!("Received {} matches.", matches.len());
|
||||
|
|
Loading…
Reference in a new issue