From 545439923f384585c791bfb767b183192e0b1a0e Mon Sep 17 00:00:00 2001 From: kjuulh Date: Sat, 25 May 2024 14:04:54 +0200 Subject: [PATCH] feat: add sync 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 8ffc255..ff9754c 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) }