@@ -400,8 +400,8 @@ declare_clippy_lint! {
400400declare_clippy_lint ! {
401401 /// **What it does:** Checks for usage of `_.map(_).flatten(_)`,
402402 ///
403- /// **Why is this bad?** Readability, this can be written more concisely as a
404- /// single method call using `_.flat_map(_)`
403+ /// **Why is this bad?** Readability, this can be written more concisely as
404+ /// `_.flat_map(_)`
405405 ///
406406 /// **Known problems:**
407407 ///
@@ -424,8 +424,8 @@ declare_clippy_lint! {
424424 /// **What it does:** Checks for usage of `_.filter(_).map(_)`,
425425 /// `_.filter(_).flat_map(_)`, `_.filter_map(_).flat_map(_)` and similar.
426426 ///
427- /// **Why is this bad?** Readability, this can be written more concisely as a
428- /// single method call .
427+ /// **Why is this bad?** Readability, this can be written more concisely as
428+ /// `_.filter_map(_)` .
429429 ///
430430 /// **Known problems:** Often requires a condition + Option/Iterator creation
431431 /// inside the closure.
@@ -452,8 +452,8 @@ declare_clippy_lint! {
452452declare_clippy_lint ! {
453453 /// **What it does:** Checks for usage of `_.filter_map(_).next()`.
454454 ///
455- /// **Why is this bad?** Readability, this can be written more concisely as a
456- /// single method call .
455+ /// **Why is this bad?** Readability, this can be written more concisely as
456+ /// `_.find_map(_)` .
457457 ///
458458 /// **Known problems:** None
459459 ///
@@ -496,8 +496,8 @@ declare_clippy_lint! {
496496declare_clippy_lint ! {
497497 /// **What it does:** Checks for usage of `_.find(_).map(_)`.
498498 ///
499- /// **Why is this bad?** Readability, this can be written more concisely as a
500- /// single method call .
499+ /// **Why is this bad?** Readability, this can be written more concisely as
500+ /// `_.find_map(_)` .
501501 ///
502502 /// **Known problems:** Often requires a condition + Option/Iterator creation
503503 /// inside the closure.
@@ -1276,8 +1276,8 @@ declare_clippy_lint! {
12761276declare_clippy_lint ! {
12771277 /// **What it does:** Checks for usage of `_.as_ref().map(Deref::deref)` or it's aliases (such as String::as_str).
12781278 ///
1279- /// **Why is this bad?** Readability, this can be written more concisely as a
1280- /// single method call .
1279+ /// **Why is this bad?** Readability, this can be written more concisely as
1280+ /// `_.as_deref()` .
12811281 ///
12821282 /// **Known problems:** None.
12831283 ///
0 commit comments