Skip to content

Commit

Permalink
remove redundant to_string call
Browse files Browse the repository at this point in the history
  • Loading branch information
rdcm committed Oct 16, 2023
1 parent 5269b47 commit bf3f635
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion domain_impl/src/handlers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ pub struct CreateUserCommandHandler {
impl ICommandHandler<CreateUserCommand, Option<String>> for CreateUserCommandHandler {
async fn handle(&self, cmd: CreateUserCommand) -> Option<String> {
let user = User {
name: cmd.name.to_string(),
name: cmd.name,
age: cmd.age,
};

Expand Down

0 comments on commit bf3f635

Please sign in to comment.