Anyone care to assist with the correct way to write some #rustlang code? Move/borrow is losing me in practice.
Here's what I'm trying to do (but it doesn't compile): http://bit.ly/2BLvTEB . Help appreciated!
/cc @rustlang
Please provide a complete example that others can try. Also, why do you want to get rid of the clones? If that's really a channel, then cloning it is cheap and OK.
-
-
What it does is not important, I’m wondering about alternative patterns at a high level
-
I didn't ask what it does. I asked for an example that I can compile so that I can help you compile it. :-) --- Answers at a high level might not be possible! Details matter.
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.