1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-22 02:54:21 +00:00

Use .flatten instead of .filter_map(|o| o)

This commit is contained in:
Steffo 2024-08-08 00:43:11 +02:00
parent 2575f2429a
commit a705e2fae4
Signed by: steffo
GPG key ID: 5ADA3868646C3FC0

View file

@ -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());