From 22c029fea538d41ce6b5cb2ab89d7d88b001b8ca Mon Sep 17 00:00:00 2001 From: LukeMathWalker <20745048+LukeMathWalker@users.noreply.github.com> Date: Mon, 13 May 2024 13:58:35 +0200 Subject: [PATCH] Fix test. --- exercises/06_ticket_management/08_impl_trait/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exercises/06_ticket_management/08_impl_trait/src/lib.rs b/exercises/06_ticket_management/08_impl_trait/src/lib.rs index d6d9d96..d8afbe0 100644 --- a/exercises/06_ticket_management/08_impl_trait/src/lib.rs +++ b/exercises/06_ticket_management/08_impl_trait/src/lib.rs @@ -54,7 +54,7 @@ mod tests { description: ticket_description(), status: Status::InProgress, }; - store.add_ticket(in_progress); + store.add_ticket(in_progress.clone()); let in_progress_tickets: Vec<&Ticket> = store.in_progress().collect(); assert_eq!(in_progress_tickets.len(), 1); -- 2.45.2