Skip to content

Commit cde4f8c

Browse files
committed
gio: restrict ListStore::new to Object types
1 parent 472fb0e commit cde4f8c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gio/src/list_store.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use crate::{prelude::*, ListModel, ListStore};
88

99
impl ListStore {
1010
#[doc(alias = "g_list_store_new")]
11-
pub fn new<T: StaticType>() -> Self {
11+
pub fn new<T: IsA<Object>>() -> Self {
1212
Self::with_type(T::static_type())
1313
}
1414

0 commit comments

Comments
 (0)