completed till 11
This commit is contained in:
@@ -7,6 +7,14 @@ pub struct TicketStore {
|
||||
tickets: Vec<Ticket>,
|
||||
}
|
||||
|
||||
impl TicketStore {
|
||||
fn in_progress(&self) -> impl Iterator<Item = &Ticket> {
|
||||
self.tickets
|
||||
.iter()
|
||||
.filter(|&a| a.status == Status::InProgress)
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug, PartialEq)]
|
||||
pub struct Ticket {
|
||||
pub title: TicketTitle,
|
||||
|
||||
Reference in New Issue
Block a user