From: LukeMathWalker <20745048+LukeMathWalker@users.noreply.github.com> Date: Mon, 13 May 2024 11:58:35 +0000 (+0200) Subject: Fix test. X-Git-Url: http://git.euphorik.ch/index.cgi?a=commitdiff_plain;h=22c029fea538d41ce6b5cb2ab89d7d88b001b8ca;p=rust_exercises.git Fix test. --- 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);