3 ms·
Just leaving your code in the old style seems viable. My Rust code from 2017 still compiles just fine on the latest stable compiler. There are a bunch of ways I
by nicoburns 6y ago
Just leaving your code in the old style seems viable. My Rust code from 2017 still compiles just fine on the latest stable compiler. There are a bunch of ways I could simplify the code now (mainly enabled to non-lexical lifetimes), and I would if I needed to change the relevant section of code. But I definitely don't need to.
The Rust compiler itself has lots of code in a really old style (much of it predates Rust 1.0, and originally used features that Rust no longer has). And it's generally considered to be maintainable code.