mirror of
https://github.com/mainmatter/100-exercises-to-learn-rust
synced 2024-12-26 21:58:49 +01:00
Remove IntoIterator impl for &TicketStore
This commit is contained in:
parent
785c9af4be
commit
33444dfeee
1 changed files with 0 additions and 9 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue