Fix tests.

This commit is contained in:
Stephen Chung
2022-03-18 17:11:52 +08:00
parent 61ef115ecb
commit d01a6d428f
3 changed files with 7 additions and 1 deletions

View File

@@ -264,7 +264,7 @@ impl Module {
// NB: sub-modules must have their new items for exporting generated in depth-first order
// to avoid issues caused by re-parsing them
let inner_modules = sub_modules
.drain(..)
.into_iter()
.try_fold::<_, _, Result<_, syn::Error>>(Vec::new(), |mut acc, m| {
acc.push(m.generate_inner()?);
Ok(acc)