3 ms·
> 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
by dthul 6y 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.