diff --git a/wnfs-hamt/src/node.rs b/wnfs-hamt/src/node.rs index 43baa161..453e828e 100644 --- a/wnfs-hamt/src/node.rs +++ b/wnfs-hamt/src/node.rs @@ -852,6 +852,7 @@ where let mut pointers = Vec::with_capacity(self.pointers.len()); for pointer in self.pointers.iter() { + // Boxing the future due to recursion pointers.push(boxed_fut(pointer.to_serializable(store)).await?); } diff --git a/wnfs/src/public/directory.rs b/wnfs/src/public/directory.rs index 02cd6d80..927d6a02 100644 --- a/wnfs/src/public/directory.rs +++ b/wnfs/src/public/directory.rs @@ -833,6 +833,7 @@ impl Storable for PublicDirectory { let userland = { let mut map = BTreeMap::new(); for (name, link) in self.userland.iter() { + // Boxing the future due to recursion map.insert(name.clone(), boxed_fut(link.resolve_cid(store)).await?); } map