Closed
Description
I just ran into a project where Result::is_ok
was accidentally being called without using the result -- I believe it had been confused with an assertion method like expect()
. Had is_ok
been marked #[must_use]
this mistake would have been prevented.