diff --git a/src/lib.rs b/src/lib.rs index c6f25f3..25f9b0a 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -156,7 +156,7 @@ pub use menu::Menu; /// An unique id that is associated with a menu item. #[derive(Clone, Debug, PartialEq, Eq, PartialOrd, Ord, Default, Hash)] -pub struct MenuId(String); +pub struct MenuId(pub String); impl AsRef for MenuId { fn as_ref(&self) -> &str {