From df3b4ae78f28c0364c2fdc949bd926e18409c1d3 Mon Sep 17 00:00:00 2001 From: Ali MJ Al-Nasrawy Date: Fri, 29 Jul 2022 23:10:50 +0300 Subject: [PATCH] avoid a rustc bug context: https://github.com/rust-lang/rust/pull/98835 --- shared/src/types.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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, })