3 ms·
Idiomatic Rust would have been to return a Result<> to the caller, not to surprise them with a panic. The developer was lazy. A lot of Rust developers are: ht
by echelon 1y ago
Idiomatic Rust would have been to return a Result<> to the caller, not to surprise them with a panic.
The developer was lazy.
A lot of Rust developers are: https://github.com/search?q=unwrap%28%29+language%3ARust&type=code https://github.com/search?q=unwrap%28%29+language%3ARust&typ...