wip: dst nodes leak but work

This commit is contained in:
Jonathan Kelley committed 2021-11-07 01:49:53 -05:00
1 parent 464b457b80
commit 62ed9208a4
2 files changed
+165 -76

No files matched your search

+3 -4
View File
@@ -679,10 +679,9 @@ impl<'a> NodeFactory<'a> {
})
}
pub fn annotate_lazy<'z, 'b, F>(f: F) -> Option<LazyNodes<'z, 'b>>
where
F: FnOnce(NodeFactory<'z>) -> VNode<'z> + 'b,
{
pub fn annotate_lazy<'z, 'b>(
f: impl FnOnce(NodeFactory<'z>) -> VNode<'z> + 'b,
) -> Option<LazyNodes<'z, 'b>> {
Some(LazyNodes::new(f))
}
}