Comment by dthul
5 years ago
> This does not even give a warning.
Just to clarify: the "let _ = ..." construct is the explicit way of suppressing the warning in Rust. You acknowledge that there is indeed a return value but you choose to ignore it. Just calling the function without explicitly discarding the Result will give you a warning.
No comments yet
Contribute on Hacker News ↗