Skip to content

Commit 9614736

Browse files
committed
added display to allergen info
1 parent cf1ca53 commit 9614736

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/parse/daily_menu/allergens.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,12 @@ impl AllergenInfo {
7272
}
7373
}
7474

75+
impl Display for AllergenInfo {
76+
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
77+
write!(f, "{}", self.0)
78+
}
79+
}
80+
7581
bitflags! {
7682
#[derive(Debug, PartialEq, Eq)]
7783
pub struct AllergenFlags: u16 {

0 commit comments

Comments
 (0)