Skip to content

Wrapping a ListStore with an Rc no longer (?) works anymore #1301

Closed Answered by sdroege
cmdcolin asked this question in Q&A
Discussion options

You must be logged in to vote

Why do you want to wrap it in an Rc? The ListStore already behaves like an Rc: clone() will simply increase its reference count.

For your code, it will probably work if you do store_rc.as_ref() but having two layers of reference counting is not a good idea.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@cmdcolin
Comment options

@sdroege
Comment options

Answer selected by cmdcolin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants