mirror of https://github.com/http-rs/tide
Fix clippy warning (and unbreak CI): use flat_map
This commit is contained in:
parent
ea02080e00
commit
b14ff62dce
|
@ -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()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue