From 3d534dd3366ee4ab0648f7691a93b2246d8a6a89 Mon Sep 17 00:00:00 2001 From: LukeMathWalker <20745048+LukeMathWalker@users.noreply.github.com> Date: Tue, 14 May 2024 14:53:55 +0200 Subject: [PATCH] Use &str rather than &String. --- exercises/05_ticket_v2/03_variants_with_data/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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!() } } -- 2.45.2