3 ms·
It doesn't differ by much, here's an example of let-else replacing if-let: https://github.com/serprex/NULL/commit/9ab765c5089ce1f0e32cee78b191d32044c30b25 https
by __s 4y ago
It doesn't differ by much, here's an example of let-else replacing if-let: https://github.com/serprex/NULL/commit/9ab765c5089ce1f0e32cee78b191d32044c30b25 https://github.com/serprex/NULL/commit/9ab765c5089ce1f0e32ce...
In another codebase I had something like
let msg = if let Ok(msg) = ... { msg } else { continue };
becoming
let Ok(msg) = ... else { continue };