#rustlang annoyance of the day:
Can't write
return (foo, foo.len());
Can write
return (foo.len(), foo);
So instead write:
let len = foo.len();
return (foo, len);
Would be nice if the compiler re-ordered things, given the move can't actually happen before the len call.
-
-
unless I've installed the wrong thing, then no :-/ I have the rust brew installed.
-
https://www.rustup.rs/ is your friend :) It will just fetch binaries
- 3 more replies
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.
