Open

Description
Suggest replacing the expression x == Some(true)
with x.unwrap_or(false)
. To me the second form better expresses what's going on: use the value in x
otherwise default to false
.
This is similar to the bool_comparison
lint but I guess it could be more controversial. I'm OK if it's pedantic
or restriction
depending on what other people think.