From e0b01a53a978c4f14f1136f6749dec9c8939d4a9 Mon Sep 17 00:00:00 2001 From: jimbrankelly Date: Tue, 29 Oct 2024 05:25:15 -0500 Subject: [PATCH] Update examples/listbox_sort_stringlist/main.rs Co-authored-by: Bilal Elmoussaoui --- examples/listbox_sort_stringlist/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/listbox_sort_stringlist/main.rs b/examples/listbox_sort_stringlist/main.rs index c0f77b34bbf5..785b793e2b99 100644 --- a/examples/listbox_sort_stringlist/main.rs +++ b/examples/listbox_sort_stringlist/main.rs @@ -42,7 +42,7 @@ fn build_ui(application: >k::Application) { let model = gtk::StringList::new(&["zoo", "abba", "donkey", "sunrise", "river", "phoenix"]); // Create a sort model and bind it to the ListStore and the sorter. - let sort_model = gtk::SortListModel::new(Some(model.clone()), Some(sorter.clone())); + let sort_model = gtk::SortListModel::new(Some(model.clone()), Some(sorter)); // And then create the UI part, the listbox and bind the sort // model to it. Whenever the UI needs to show a new row, e.g. because