From e6f291062f0d826deefe2c76cc66f431eb51a8f8 Mon Sep 17 00:00:00 2001 From: viktorstrate Date: Sun, 10 Nov 2024 17:20:36 +0100 Subject: [PATCH] Fix clippy issues --- masonry/src/widget/zstack.rs | 1 + xilem/src/view/zstack.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/masonry/src/widget/zstack.rs b/masonry/src/widget/zstack.rs index 658217d26..3ffd2d820 100644 --- a/masonry/src/widget/zstack.rs +++ b/masonry/src/widget/zstack.rs @@ -10,6 +10,7 @@ struct Child { widget: WidgetPod>, } +#[derive(Default)] pub struct ZStack { children: Vec, } diff --git a/xilem/src/view/zstack.rs b/xilem/src/view/zstack.rs index fdaebce9f..6b3407941 100644 --- a/xilem/src/view/zstack.rs +++ b/xilem/src/view/zstack.rs @@ -88,7 +88,7 @@ impl ViewElement for ZStackElement { } impl SuperElement for ZStackElement { - fn upcast(ctx: &mut ViewCtx, child: ZStackElement) -> Self { + fn upcast(_ctx: &mut ViewCtx, child: ZStackElement) -> Self { child }