diff options
| author | Cameron Steffen <cam.steffen94@gmail.com> | 2021-10-02 18:51:01 -0500 |
|---|---|---|
| committer | Cameron Steffen <cam.steffen94@gmail.com> | 2021-10-02 19:38:19 -0500 |
| commit | e165c129324c48a54d321b2dd77e2ff4c7ee9739 (patch) | |
| tree | 5e61755ae5b692c1e5ce69f0c5d99e3a63325831 /clippy_lints/src/methods/map_collect_result_unit.rs | |
| parent | 2cb37a19110be1f80133a336acae2072ea8e310d (diff) | |
Make diangostic item names consistent
Diffstat (limited to 'clippy_lints/src/methods/map_collect_result_unit.rs')
| -rw-r--r-- | clippy_lints/src/methods/map_collect_result_unit.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clippy_lints/src/methods/map_collect_result_unit.rs b/clippy_lints/src/methods/map_collect_result_unit.rs index 82063ad70b5..d420f144eea 100644 --- a/clippy_lints/src/methods/map_collect_result_unit.rs +++ b/clippy_lints/src/methods/map_collect_result_unit.rs @@ -23,7 +23,7 @@ pub(super) fn check( if is_trait_method(cx, collect_recv, sym::Iterator); // return of collect `Result<(),_>` let collect_ret_ty = cx.typeck_results().expr_ty(expr); - if is_type_diagnostic_item(cx, collect_ret_ty, sym::result_type); + if is_type_diagnostic_item(cx, collect_ret_ty, sym::Result); if let ty::Adt(_, substs) = collect_ret_ty.kind(); if let Some(result_t) = substs.types().next(); if result_t.is_unit(); |
