Skip to content

Commit

Permalink
chore(widgets): unreachable -> expect
Browse files Browse the repository at this point in the history
  • Loading branch information
Rudxain authored and Rudxain committed Jul 11, 2024
1 parent ae2cf07 commit c0f2ea5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/widgets/modal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit c0f2ea5

Please sign in to comment.