From: LukeMathWalker <20745048+LukeMathWalker@users.noreply.github.com> Date: Mon, 13 May 2024 11:49:10 +0000 (+0200) Subject: Remove IntoIterator impl for &TicketStore X-Git-Url: http://git.euphorik.ch/index.cgi?a=commitdiff_plain;h=33444dfeee3cc683d91760e5088ede316f74fa72;p=rust_exercises.git Remove IntoIterator impl for &TicketStore --- diff --git a/exercises/06_ticket_management/05_iter/src/lib.rs b/exercises/06_ticket_management/05_iter/src/lib.rs index 6232e3a..da75366 100644 --- a/exercises/06_ticket_management/05_iter/src/lib.rs +++ b/exercises/06_ticket_management/05_iter/src/lib.rs @@ -13,15 +13,6 @@ pub struct Ticket { status: Status, } -impl IntoIterator for &TicketStore { - type Item = &Ticket; - type IntoIter = impl Iterator; - - fn into_iter(self) -> Self::IntoIter { - self.tickets.iter() - } -} - #[derive(Clone, Debug, Copy, PartialEq)] pub enum Status { ToDo,