Remove IntoIterator impl for &TicketStore
authorLukeMathWalker <20745048+LukeMathWalker@users.noreply.github.com>
Mon, 13 May 2024 11:49:10 +0000 (13:49 +0200)
committerLukeMathWalker <20745048+LukeMathWalker@users.noreply.github.com>
Mon, 13 May 2024 11:49:10 +0000 (13:49 +0200)
exercises/06_ticket_management/05_iter/src/lib.rs

index 6232e3a..da75366 100644 (file)
@@ -13,15 +13,6 @@ pub struct Ticket {
     status: Status,
 }
 
-impl IntoIterator for &TicketStore {
-    type Item = &Ticket;
-    type IntoIter = impl Iterator<Item = &Ticket>;
-
-    fn into_iter(self) -> Self::IntoIter {
-        self.tickets.iter()
-    }
-}
-
 #[derive(Clone, Debug, Copy, PartialEq)]
 pub enum Status {
     ToDo,