I wrote 5,000 lines of Rust over the past month and a half, while compiling with nightly. After checking that it still compiles on Rust 1.24, I found that I only had one place in my code that required match ergonomics. Borrows are ingrained in me brain.
-
-
This Tweet is unavailable.
The one place I missed was a `vector.iter().map(|(a, b)| ...)`, which match ergonomics allowed. What I actually needed was `vector.iter().map(|&(a, b)| ...)`.
6:43 PM - 27 Mar 2019
0 replies
0 retweets
1 like
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.