aboutsummaryrefslogtreecommitdiff
path: root/examples/factory/user.rs
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2022-08-20 15:14:13 +0200
committerHampusM <hampus@hampusmat.com>2022-08-21 18:17:50 +0200
commit47c68f7d70cfa8c639f72361d8d0362048647075 (patch)
tree871f3577e54f77aa51368f1e34012c1f4f31e44d /examples/factory/user.rs
parentc4eccc81d9bfa472197a4f302df1c967081a0be5 (diff)
docs: improve the factory example
Diffstat (limited to 'examples/factory/user.rs')
-rw-r--r--examples/factory/user.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/factory/user.rs b/examples/factory/user.rs
index 121ad25..97a7632 100644
--- a/examples/factory/user.rs
+++ b/examples/factory/user.rs
@@ -27,16 +27,16 @@ impl IUser for User
{
fn get_name(&self) -> &'static str
{
- self.name.clone()
+ self.name
}
fn get_date_of_birth(&self) -> &'static str
{
- self.date_of_birth.clone()
+ self.date_of_birth
}
fn get_password(&self) -> &'static str
{
- self.password.clone()
+ self.password
}
}