Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Invalid type signature in 1_7 #67

Open
imlvts opened this issue Jan 11, 2024 · 1 comment
Open

[WIP] Invalid type signature in 1_7 #67

imlvts opened this issue Jan 11, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@imlvts
Copy link

imlvts commented Jan 11, 2024

Summary

in task 1_7, CommandHandler::handle_command has a signature which cannot be implemented.

impl CommandHandler<CreateUser> for User {
    type Context = dyn UserRepository;
    type Result = Result<(), UserError>;
    
    fn handle_command(&self, cmd: &C, ctx: &Self::Context) -> Self::Result {
        // Here we operate with UserRepository
        // via its trait object: &dyn UserRepository
    }
}

Steps to reproduce

What is the current bug behavior?

What is the expected correct behavior?

Relevant logs and/or screenshots

Possible fixes

@imlvts imlvts added the bug Something isn't working label Jan 11, 2024
@NamesMark
Copy link

Well isn't it our task to implement it? ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants