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
-
Show this thread
-
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.
1 reply 0 retweets 0 likes -
Replying to @burntsushi5 @rustlang
What it does is not important, I’m wondering about alternative patterns at a high level
1 reply 0 retweets 0 likes
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.
10:31 AM - 6 Dec 2017
0 replies
0 retweets
0 likes
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.