cargo clippy
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Pierre HUBERT 2022-11-12 11:18:40 +01:00
parent 7e1cbb184d
commit 46bf14025b

View File

@ -9,7 +9,7 @@ pub enum LoginResult {
AccountNotFound,
InvalidPassword,
AccountDisabled,
Success(User),
Success(Box<User>),
}
#[derive(Message)]
@ -98,7 +98,7 @@ impl Handler<LoginRequest> for UsersActor {
return MessageResult(LoginResult::AccountDisabled);
}
MessageResult(LoginResult::Success(user))
MessageResult(LoginResult::Success(Box::new(user)))
}
}
}