Warn about Result
s only used in println!()
#2529
Labels
E-medium
Call for participation: Medium difficulty level problem and requires some initial experience.
L-correctness
Lint: Belongs in the correctness lint group
T-middle
Type: Probably requires verifiying types
A few times now, I've come across tests where a result wasn't verified. Most often, this happens when the result is printed for debugging purposes. See sample code below or have a look at this this real-word example.
While I haven't seen it, I guess this could also be an issue outside of tests or with error!(), warn!(), etc.
I believe it would make since to emit a warning in such cases.
Sample:
The text was updated successfully, but these errors were encountered: