Cleanup warnings and visual

This commit is contained in:
Vivianne 2023-06-11 18:00:06 -07:00
parent e59f85ae59
commit 1eb5622604
2 changed files with 1 additions and 8 deletions

View file

@ -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;

View file

@ -62,6 +62,7 @@ impl SimpleComponent for AppModel {
append_column = &gtk::ColumnViewColumn {
set_title: Some("Name"),
set_resizable: true,
set_expand: true,
set_factory: Some(&factory1)
},
append_column = &gtk::ColumnViewColumn {