Few things infuriate me as much as example code that doesn't compile.
looking at you @rustlang (https://doc.rust-lang.org/std/net/struct.UdpSocket.html …)
-
-
Replying to @living_syn @rustlang
works on the rust playground: https://play.rust-lang.org/?gist=796782908a6936092a40b42d5b1af8b0&version=stable&backtrace=0 … did you just need the OK(()) in there?
4 replies 0 retweets 0 likes -
Replying to @llimllib @living_syn
Yes, you need to be in a function that returns Result to use ?. Since it's not pertinent to the actual example, the boilerplate is hidden
1 reply 0 retweets 1 like -
Whelp, I'm an idiot sorry!
1 reply 0 retweets 0 likes
Replying to @living_syn @llimllib
Naw it's a footgun; both options are not great. Don't feel bad!
10:57 AM - 12 Jun 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.