Turns out it was just a lifetime issue.

This commit is contained in:
Tom Alexander
2020-05-31 20:43:07 -04:00
parent 2b8894f9c2
commit 680fc167ea

View File

@@ -88,7 +88,7 @@ impl<'a> DustRenderer<'a> {
} }
fn new_breadcrumbs_partial<'b>( fn new_breadcrumbs_partial<'b>(
&self, &'b self,
maybe_breadcrumbs: Option<&'b BreadcrumbTree>, maybe_breadcrumbs: Option<&'b BreadcrumbTree>,
explicit_context_maybe_breadcrumbs: Option<&'b BreadcrumbTree>, explicit_context_maybe_breadcrumbs: Option<&'b BreadcrumbTree>,
injected_context: Option<&'b dyn IntoContextElement>, injected_context: Option<&'b dyn IntoContextElement>,
@@ -139,7 +139,7 @@ impl<'a> DustRenderer<'a> {
}); });
}); });
None Some((parent, new_nodes))
} }
/// Returns a Breadcrumb tree where all the bottom nodes that do /// Returns a Breadcrumb tree where all the bottom nodes that do