From 361be7f6b7e93c7162281a107c3070b736ba692e Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Mon, 13 Jan 2020 06:58:48 +0100 Subject: Remove `Message: Clone` bound in some web widgets --- web/src/bus.rs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'web/src/bus.rs') diff --git a/web/src/bus.rs b/web/src/bus.rs index 09908679..b3984aff 100644 --- a/web/src/bus.rs +++ b/web/src/bus.rs @@ -8,11 +8,18 @@ use std::rc::Rc; /// /// [`Application`]: trait.Application.html #[allow(missing_debug_implementations)] -#[derive(Clone)] pub struct Bus { publish: Rc>, } +impl Clone for Bus { + fn clone(&self) -> Self { + Self { + publish: Rc::clone(&self.publish), + } + } +} + impl Bus where Message: 'static, -- cgit