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) }