Closed mcarton closed 8 years ago
Very nice! It's just that one case with unwrap_or
vs unwrap_or_else
.
The complicated types could possibly move out of the trait implementations, but I would rather just find a better alternative to that pattern. They can stay for now. The is_empty
case is caused by the peek
function. I could, perhaps, rename it.
It's nice to see that the false positives are fewer this time :smile:
Never mind, it's all good (except for my brain, apparently). Thanks for running these checks.
@homu r+
:pushpin: Commit e59e0d1 has been approved by Ogeon
There are 5 warnings left:
needless_lifetimes
which is a false positive (reported there: https://github.com/Manishearth/rust-clippy/issues/740#issuecomment-205826823);type_complexity
warnings that I did not fix because they seem legit;wrong_self_convention
which seems semi-legit too, although it’s a little surprising to have anis_empty
function require a&mut self
.Here they are, FYI: