Spawn Command futures in iced_web

This commit is contained in:
Héctor Ramón Jiménez 2019-11-24 11:25:14 +01:00
parent 5b8f6948bb
commit 9f3abe9202
6 changed files with 36 additions and 18 deletions

View file

@ -38,8 +38,8 @@ impl<'a, Message> Element<'a, Message> {
/// [`Element`]: struct.Element.html
pub fn map<F, B>(self, f: F) -> Element<'a, B>
where
Message: 'static,
B: 'static,
Message: 'static + Clone,
B: 'static + Clone,
F: 'static + Fn(Message) -> B,
{
Element {
@ -82,8 +82,8 @@ impl<'a, A, B> Map<'a, A, B> {
impl<'a, A, B> Widget<B> for Map<'a, A, B>
where
A: 'static,
B: 'static,
A: 'static + Clone,
B: 'static + Clone,
{
fn node<'b>(
&self,