Skip to content

Commit

Permalink
avoid a rustc bug
Browse files Browse the repository at this point in the history
  • Loading branch information
aliemjay authored and strohel committed Aug 1, 2022
1 parent 144c2f6 commit df3b4ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions shared/src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -259,11 +259,11 @@ impl<'a> CidrTree<'a> {
}
}

pub fn children(&self) -> impl Iterator<Item = CidrTree> {
pub fn children(&self) -> impl Iterator<Item = CidrTree<'_>> {
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,
})
Expand Down

0 comments on commit df3b4ae

Please sign in to comment.