Fix test.
authorLukeMathWalker <20745048+LukeMathWalker@users.noreply.github.com>
Mon, 13 May 2024 11:58:35 +0000 (13:58 +0200)
committerLukeMathWalker <20745048+LukeMathWalker@users.noreply.github.com>
Mon, 13 May 2024 11:58:35 +0000 (13:58 +0200)
exercises/06_ticket_management/08_impl_trait/src/lib.rs

index d6d9d96..d8afbe0 100644 (file)
@@ -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);