From 843139591cc399198838e01c54f48fc81e37f1a2 Mon Sep 17 00:00:00 2001 From: kjuulh Date: Sat, 25 May 2024 14:03:00 +0200 Subject: [PATCH] feat: add send Signed-off-by: kjuulh --- crates/cuddle-clusters/src/components.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/crates/cuddle-clusters/src/components.rs b/crates/cuddle-clusters/src/components.rs index 1516aea..8ffc255 100644 --- a/crates/cuddle-clusters/src/components.rs +++ b/crates/cuddle-clusters/src/components.rs @@ -27,11 +27,11 @@ pub trait Component { #[derive(Clone)] pub struct ConcreteComponent { - inner: Arc, + inner: Arc, } impl std::ops::Deref for ConcreteComponent { - type Target = Arc; + type Target = Arc; fn deref(&self) -> &Self::Target { &self.inner @@ -39,7 +39,7 @@ impl std::ops::Deref for ConcreteComponent { } impl ConcreteComponent { - pub fn new(t: T) -> Self { + pub fn new(t: T) -> Self { Self { inner: Arc::new(t) } } } @@ -54,7 +54,7 @@ impl IntoComponent for ConcreteComponent { } } -impl IntoComponent for T { +impl IntoComponent for T { fn into_component(self) -> ConcreteComponent { ConcreteComponent::new(self) }