]> git.lizzy.rs Git - rust.git/commit
Auto merge of #5664 - ThibsG:GiveCorrectedCode, r=flip1995
authorbors <bors@rust-lang.org>
Tue, 2 Jun 2020 12:11:28 +0000 (12:11 +0000)
committerbors <bors@rust-lang.org>
Tue, 2 Jun 2020 12:11:28 +0000 (12:11 +0000)
commit5cb9ef390aea2a1adaae4b9836bb7a3a75c47f25
tree3264f79738b35896cde8fb12ed376fee02a4fad5
parentf760d77bdb2bff46f284500f77ecc697dd8507c5
parent137a3b4d3242cfe331f8f9b87c51ac0c431fe160
Auto merge of #5664 - ThibsG:GiveCorrectedCode, r=flip1995

Give corrected code

This PR adds corrected code for doc examples.

I did this in several commits to facilitate review.
Don't hesitate to tell me if I forgot some.
Also, sometimes I felt it was not necessary to give corrected code, but I maybe wrong.

fixes: #4829

changelog: Improve documentation examples across multiple lints.
clippy_lints/src/methods/mod.rs
src/lintlist/mod.rs