We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7058136 commit 0d6261bCopy full SHA for 0d6261b
src/cache/menu_cache.rs
@@ -6,5 +6,4 @@ struct menu_cache {
6
date: NaiveDate,
7
locations: Vec<LocationMeta>,
8
}
9
-
10
impl menu_cache {}
src/parse/daily_menu/allergens.rs
@@ -1,4 +1,4 @@
1
-use std::fmt::Display;
+use std::{fmt::Display, ops::Deref};
2
3
use crate::parse::Error;
4
use bitflags::bitflags;
@@ -78,6 +78,14 @@ impl Display for AllergenInfo {
78
79
80
81
+impl Deref for AllergenInfo {
82
+ type Target = AllergenFlags;
83
+
84
+ fn deref(&self) -> &Self::Target {
85
+ &self.0
86
+ }
87
+}
88
89
impl Into<Vec<&'static str>> for &AllergenInfo {
90
fn into(self) -> Vec<&'static str> {
91
(&self.0).into()
0 commit comments