mirror of
https://github.com/mainmatter/100-exercises-to-learn-rust
synced 2025-01-15 15:41:03 +01:00
Use &str rather than &String.
This commit is contained in:
parent
933d5dd4b4
commit
3d534dd336
1 changed files with 1 additions and 1 deletions
|
@ -37,7 +37,7 @@ impl Ticket {
|
||||||
status,
|
status,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
pub fn assigned_to(&self) -> &String {
|
pub fn assigned_to(&self) -> &str {
|
||||||
todo!()
|
todo!()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue