Fix clippy warning (and unbreak CI): use flat_map

This commit is contained in:
Josh Triplett 2022-04-26 20:34:23 -07:00
parent ea02080e00
commit b14ff62dce
1 changed files with 1 additions and 2 deletions

View File

@ -113,8 +113,7 @@ where
fn info(&self) -> Vec<ListenInfo> {
self.listeners
.iter()
.map(|listener| listener.info().into_iter())
.flatten()
.flat_map(|listener| listener.info().into_iter())
.collect()
}
}