Fix some formatting issues

This commit is contained in:
flip1995
2018-11-27 21:49:09 +01:00
parent 1751d2496d
commit 63fa5d24e1
14 changed files with 120 additions and 139 deletions

View File

@@ -249,10 +249,9 @@ declare_clippy_lint! {
/// vec.iter().map(|x| /* some operation returning () */).collect::<Vec<_>>();
/// ```
declare_clippy_lint! {
pub UNUSED_COLLECT,
perf,
"`collect()`ing an iterator without using the result; this is usually better \
written as a for loop"
pub UNUSED_COLLECT,
perf,
"`collect()`ing an iterator without using the result; this is usually better written as a for loop"
}
/// **What it does:** Checks for functions collecting an iterator when collect