diff --git a/crates/derive/Cargo.toml b/crates/derive/Cargo.toml index eedb621..b220da9 100644 --- a/crates/derive/Cargo.toml +++ b/crates/derive/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "messagebus_derive" -version = "0.2.2" +version = "0.2.3" authors = ["Andrey Tkachenko "] repository = "https://github.com/andreytkachenko/messagebus.git" keywords = ["futures", "async", "tokio", "message", "bus"] diff --git a/crates/derive/src/lib.rs b/crates/derive/src/lib.rs index 820c2de..0f4eca7 100644 --- a/crates/derive/src/lib.rs +++ b/crates/derive/src/lib.rs @@ -14,14 +14,14 @@ fn shared_part(_ast: &syn::DeriveInput, has_shared: bool) -> proc_macro2::TokenS quote! { fn as_shared_ref(&self) -> std::option::Option<&dyn messagebus::SharedMessage> {Some(self)} fn as_shared_mut(&mut self) -> std::option::Option<&mut dyn messagebus::SharedMessage>{Some(self)} - fn as_shared_boxed(self: Box) -> Result, Box> {Ok(self)} + fn as_shared_boxed(self: Box) -> Result, Box> {Ok(self)} fn as_shared_arc(self: std::sync::Arc) -> Option>{Some(self)} } } else { quote! { fn as_shared_ref(&self) -> std::option::Option<&dyn messagebus::SharedMessage> {None} fn as_shared_mut(&mut self) -> std::option::Option<&mut dyn messagebus::SharedMessage> {None} - fn as_shared_boxed(self: Box) -> Result, Box> {Err(self)} + fn as_shared_boxed(self: Box) -> Result, Box> {Err(self)} fn as_shared_arc(self: std::sync::Arc) -> Option> {None} } }