diff --git a/shared/src/types.rs b/shared/src/types.rs index 1d9051d..76c246e 100644 --- a/shared/src/types.rs +++ b/shared/src/types.rs @@ -259,11 +259,11 @@ impl<'a> CidrTree<'a> { } } - pub fn children(&self) -> impl Iterator { + pub fn children(&self) -> impl Iterator> { self.cidrs .iter() .filter(move |c| c.parent == Some(self.contents.id)) - .map(move |c| Self { + .map(move |c| CidrTree { cidrs: self.cidrs, contents: c, })