-
I was trying to update a sample app that worked with 0.5.x using a ListStore in a Rc. Example code similar to the column_view_datagrid example setup
fails with compile error
works
the compile error is
this used to work for me but after i tried updating to 0.6.0 started giving the above error. here is an example PR for attempting the 0.6.0 upgrade that producing this error https://github.com/cmdcolin/fml9000/pull/17/files trying rustc 1.69.0-nightly (2773383a3 2023-02-10) but also was affecting rustc 1.68.0-nightly (77429957a 2023-01-01) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Why do you want to wrap it in an For your code, it will probably work if you do |
Beta Was this translation helpful? Give feedback.
Why do you want to wrap it in an
Rc
? TheListStore
already behaves like anRc
: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.