diff options
| author | 2020-01-13 06:51:28 +0100 | |
|---|---|---|
| committer | 2020-01-13 06:57:35 +0100 | |
| commit | b5cd9923f2e8f0d8d0b8145960e00084a27b6867 (patch) | |
| tree | 7bfe26f024bff9ee909a3382efecd8eed6b3f638 /web/src | |
| parent | 4758e2ff75fc947f0c4a54d8efd87caf4db2afa2 (diff) | |
| download | iced-b5cd9923f2e8f0d8d0b8145960e00084a27b6867.tar.gz iced-b5cd9923f2e8f0d8d0b8145960e00084a27b6867.tar.bz2 iced-b5cd9923f2e8f0d8d0b8145960e00084a27b6867.zip | |
Remove `Clone` bound for `Element::map`
Diffstat (limited to '')
| -rw-r--r-- | web/src/element.rs | 8 | 
1 files changed, 4 insertions, 4 deletions
| diff --git a/web/src/element.rs b/web/src/element.rs index 85fa7c34..0315d7d6 100644 --- a/web/src/element.rs +++ b/web/src/element.rs @@ -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 + Clone, -        B: 'static + Clone, +        Message: 'static, +        B: 'static,          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 + Clone, -    B: 'static + Clone, +    A: 'static, +    B: 'static,  {      fn node<'b>(          &self, | 
