diff --git a/src/gui/widgets/modal.rs b/src/gui/widgets/modal.rs index edb010be..44b2e1f0 100644 --- a/src/gui/widgets/modal.rs +++ b/src/gui/widgets/modal.rs @@ -199,7 +199,7 @@ where let content_bounds = layout .children() .next() - .unwrap_or_else(|| unreachable!("Layout must have at least 1 child")) + .expect("Layout must have at least 1 child") .bounds(); if !content_bounds.contains(cursor_position) { shell.publish(message.clone());