fix: lifetime

This commit is contained in:
Ashley Wulber 2022-12-07 11:26:49 -05:00
parent 7e00febc4d
commit e03da6380d
No known key found for this signature in database
GPG key ID: 5216D4F46A90A820

View file

@ -48,10 +48,10 @@ impl CosmicAppletHelper {
}
// TODO popup container which tracks the size of itself and requests the popup to resize to match
pub fn popup_container<Message: 'static>(
pub fn popup_container<'a, Message: 'static>(
&self,
content: impl Into<Element<'static, Message, Renderer>>,
) -> Container<Message, Renderer>
content: impl Into<Element<'a, Message, Renderer>>,
) -> Container<'a, Message, Renderer>
{
let (valign, halign) = match self.anchor {
PanelAnchor::Left => (Vertical::Center, Horizontal::Left),