Skip to content

Derive receive for actors with generic arguments. #121

@olanod

Description

@olanod

Hi! I have an Actor that is generic over a type and when using the macro #[actor(SomeMsg)] the compiler complains with wrong number of type arguments: expected 1, found 0 expected 1 type argument.

#[actor(SomeMsg)]
struct MyActor<T> {
    foo: T,
}
// ... generates
impl Receive<MyActorMsg> for MyActor { ... }

Doesn't seem like a big issue to fix but I haven't worked with procedural macros, I might try later but if anyone knows how to feel free to jump in :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions