Skip to content

Commit

Permalink
Fix clippy issues
Browse files Browse the repository at this point in the history
  • Loading branch information
viktorstrate committed Nov 10, 2024
1 parent b9c0556 commit e6f2910
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions masonry/src/widget/zstack.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ struct Child {
widget: WidgetPod<Box<dyn Widget>>,
}

#[derive(Default)]
pub struct ZStack {
children: Vec<Child>,
}
Expand Down
2 changes: 1 addition & 1 deletion xilem/src/view/zstack.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ impl ViewElement for ZStackElement {
}

impl SuperElement<ZStackElement, ViewCtx> for ZStackElement {
fn upcast(ctx: &mut ViewCtx, child: ZStackElement) -> Self {
fn upcast(_ctx: &mut ViewCtx, child: ZStackElement) -> Self {
child
}

Expand Down

0 comments on commit e6f2910

Please sign in to comment.