Make clippy happier

This commit is contained in:
Aode (Lion) 2022-03-08 12:25:28 -06:00
parent 863174b0c9
commit eba79ed4cc

View file

@ -49,8 +49,7 @@ fn main() -> Result<(), Error> {
let v: Vec<ApObject<Page>> = collection let v: Vec<ApObject<Page>> = collection
.take_items() .take_items()
.into_iter() .into_iter()
.map(|o| o.into_iter()) .flat_map(|o| o.into_iter())
.flatten()
.filter_map(|any_base| any_base.take_base()) .filter_map(|any_base| any_base.take_base())
.map(|base| base.solidify().and_then(|o| o.extend())) .map(|base| base.solidify().and_then(|o| o.extend()))
.collect::<Result<Vec<_>, _>>()?; .collect::<Result<Vec<_>, _>>()?;