Skip to content

Commit

Permalink
fix: make handle for RemoteWrapper type generic (#28)
Browse files Browse the repository at this point in the history
Co-authored-by: wenig <info@pwenig.de>
  • Loading branch information
wenig and wenig authored Apr 13, 2021
1 parent 37635ce commit 0336256
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions actix-telepathy-derive/src/remote_actor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ pub fn remote_actor_remote_messages_macro(input: TokenStream) -> TokenStream {
impl Handler<RemoteWrapper> for #name {
type Result = ();

fn handle(&mut self, mut msg: RemoteWrapper, ctx: &mut Context<Self>) -> Self::Result {
fn handle(&mut self, mut msg: RemoteWrapper, ctx: &mut Self::Context) -> Self::Result {
#chained_if
}
}
Expand Down Expand Up @@ -122,4 +122,4 @@ fn meta_item_to_struct(meta_item: &syn::NestedMeta) -> syn::Result<syn::Type> {
Err(syn::Error::new_spanned(s, "Expect Message")),
meta => Err(syn::Error::new_spanned(meta, "Expect type")),
}
}
}

0 comments on commit 0336256

Please sign in to comment.