From: LukeMathWalker <20745048+LukeMathWalker@users.noreply.github.com> Date: Tue, 14 May 2024 12:53:55 +0000 (+0200) Subject: Use &str rather than &String. X-Git-Url: http://git.euphorik.ch/index.cgi?a=commitdiff_plain;h=3d534dd3366ee4ab0648f7691a93b2246d8a6a89;p=rust_exercises.git Use &str rather than &String. --- diff --git a/exercises/05_ticket_v2/03_variants_with_data/src/lib.rs b/exercises/05_ticket_v2/03_variants_with_data/src/lib.rs index f60af71..c3943fe 100644 --- a/exercises/05_ticket_v2/03_variants_with_data/src/lib.rs +++ b/exercises/05_ticket_v2/03_variants_with_data/src/lib.rs @@ -37,7 +37,7 @@ impl Ticket { status, } } - pub fn assigned_to(&self) -> &String { + pub fn assigned_to(&self) -> &str { todo!() } }