Add for<'b> lifetime annotation (almost worked)

This commit is contained in:
Imbris
2020-05-18 00:17:25 -04:00
parent a7458c099c
commit fa1cd17a71

View File

@ -100,7 +100,7 @@ impl IcedUi {
// TODO: produce root internally??? // TODO: produce root internally???
// TODO: see if this lifetime soup can be simplified // TODO: see if this lifetime soup can be simplified
pub fn maintain<'a, 'b, M, E: Into<iced::Element<'a, M, FrameRenderer<'b>>>>( pub fn maintain<'a, M, E: for<'b> Into<iced::Element<'a, M, FrameRenderer<'b>>>>(
&mut self, &mut self,
root: E, root: E,
renderer: &mut Renderer, renderer: &mut Renderer,