diff --git a/src/menu/mod.rs b/src/menu/mod.rs index 5711e846..0e594c37 100644 --- a/src/menu/mod.rs +++ b/src/menu/mod.rs @@ -66,7 +66,12 @@ pub enum MenuEvent { /// Trait that defines how a menu will be printed by the painter pub trait Menu: Send { /// Get MenuSettings - fn settings(&self) -> &MenuSettings; + fn settings(&self) -> &MenuSettings { + // We panic here, so this function has base implementation + // so existing menus will not break. + // if a breaking change is ok, this can be removed + panic!("`settings` requires a manual implementation per menu. It has a base implementation to not break existing menus") + } /// Menu name fn name(&self) -> &str {