From 0f8efcadd92c3f4669b205c31acacfa454eb67b7 Mon Sep 17 00:00:00 2001 From: aiongg Date: Sun, 22 Nov 2026 17:01:21 +0000 Subject: [PATCH] ListRow: the collection's leaves setting is a pub(crate) prop The derive writes the setter, as design-lint's props/hand-setter asks. --- crates/ui-widgets/src/list/row.rs | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/crates/ui-widgets/src/list/row.rs b/crates/ui-widgets/src/list/row.rs index 648e0187a..d17cfde0d 100644 --- a/crates/ui-widgets/src/list/row.rs +++ b/crates/ui-widgets/src/list/row.rs @@ -266,6 +266,7 @@ pub struct ListRow<'a> { /// keeps the disclosure column and paints no disclosure. pub(super) disclosure_by_host: bool, /// How the row's tree lines up its leaves: the collection gives it (`List::tree_leaves`). + #[prop(vis = "pub(crate)")] pub(super) leaves: TreeLeaves, /// The row is an option of a listbox, not an item of a list: inset and rounded, the chosen option outlined. #[style_key] @@ -397,13 +398,6 @@ impl<'a> ListRow<'a> { self } - /// How the collection's tree lines up its leaves (`List::tree_leaves`). - #[must_use] - pub(crate) fn leaves(mut self, leaves: TreeLeaves) -> Self { - self.leaves = leaves; - self - } - /// The sub-row form and the divider under the row, from the collection's row state. #[must_use] pub(crate) fn sub_row(mut self, row: &RowState) -> Self {