[WIP] Invalid type signature in 1_7
imlvts opened this issue · comments
Igor Malovitsa commented
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
Mark commented
Well isn't it our task to implement it? ;)
Pavlo Myroniuk commented
this one is already fixed in: 480548b