From bf3f6350a44a41f21fe578cc6f643ea8cc0d86db Mon Sep 17 00:00:00 2001 From: Timofey Myagkikh Date: Mon, 16 Oct 2023 16:27:42 +0300 Subject: [PATCH] remove redundant to_string call --- domain_impl/src/handlers.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/domain_impl/src/handlers.rs b/domain_impl/src/handlers.rs index 35223b3..831e964 100644 --- a/domain_impl/src/handlers.rs +++ b/domain_impl/src/handlers.rs @@ -12,7 +12,7 @@ pub struct CreateUserCommandHandler { impl ICommandHandler> for CreateUserCommandHandler { async fn handle(&self, cmd: CreateUserCommand) -> Option { let user = User { - name: cmd.name.to_string(), + name: cmd.name, age: cmd.age, };