Skip to content

Commit c350f61

Browse files
committed
templated out menu_cache
1 parent 1f16e22 commit c350f61

File tree

2 files changed

+16
-4
lines changed

2 files changed

+16
-4
lines changed

src/cache/menu_cache.rs

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,21 @@ use chrono::NaiveDate;
22

33
use crate::parse::LocationMeta;
44

5-
struct menu_cache {
5+
struct MenuCache {
66
date: NaiveDate,
77
locations: Vec<LocationMeta>,
88
}
9-
impl menu_cache {}
9+
impl MenuCache {
10+
fn new() {
11+
// TODO
12+
todo!("Implement the MenuCache::new function")
13+
}
14+
fn from_html_element(element: scraper::ElementRef) {
15+
// TODO
16+
todo!("Implement the MenuCache::from_html_element function")
17+
}
18+
fn handle_graphql_request(&self) {
19+
// TODO
20+
todo!("Implement the MenuCache::handle_graphql_request function")
21+
}
22+
}

src/parse/daily_menu/allergens.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
use std::{fmt::Display, ops::Deref};
1+
use std::fmt::Display;
22

33
use crate::parse::Error;
44
use bitflags::bitflags;
5-
use juniper::GraphQLObject;
65

76
#[derive(Debug, PartialEq, Eq, Clone, Copy)]
87
pub struct AllergenInfo(AllergenFlags);

0 commit comments

Comments
 (0)