From 1eb5622604a00d97698d2726d9f9b972e5924ba7 Mon Sep 17 00:00:00 2001 From: Vivianne Langdon Date: Sun, 11 Jun 2023 18:00:06 -0700 Subject: [PATCH] Cleanup warnings and visual --- src/collection_list.rs | 8 -------- src/main.rs | 1 + 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/src/collection_list.rs b/src/collection_list.rs index f4047e8..126aa70 100644 --- a/src/collection_list.rs +++ b/src/collection_list.rs @@ -8,14 +8,6 @@ pub struct CollectionListItem { name: String, } -impl CollectionListItem { - pub fn new(name: String) -> Self { - Self { - name, - } - } -} - #[relm4::factory(pub)] impl FactoryComponent for CollectionListItem { type Init = String; diff --git a/src/main.rs b/src/main.rs index e8f114f..4cdc63e 100644 --- a/src/main.rs +++ b/src/main.rs @@ -62,6 +62,7 @@ impl SimpleComponent for AppModel { append_column = >k::ColumnViewColumn { set_title: Some("Name"), set_resizable: true, + set_expand: true, set_factory: Some(&factory1) }, append_column = >k::ColumnViewColumn {