Skip to content

Commit

Permalink
Fix clippy::question_mark lint
Browse files Browse the repository at this point in the history
  • Loading branch information
waywardmonkeys committed Dec 16, 2024
1 parent f672118 commit 6bf7315
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions masonry/src/widget/grid.rs
Original file line number Diff line number Diff line change
Expand Up @@ -215,11 +215,7 @@ impl Grid {
this: &'t mut WidgetMut<'_, Self>,
idx: usize,
) -> Option<WidgetMut<'t, Box<dyn Widget>>> {
let child = match this.widget.children[idx].widget_mut() {
Some(widget) => widget,
None => return None,
};

let child = this.widget.children[idx].widget_mut()?;
Some(this.ctx.get_mut(child))
}

Expand Down

0 comments on commit 6bf7315

Please sign in to comment.