about summary refs log tree commit diff
path: root/clippy_lints/src/functions/result_unit_err.rs
diff options
context:
space:
mode:
Diffstat (limited to 'clippy_lints/src/functions/result_unit_err.rs')
-rw-r--r--clippy_lints/src/functions/result_unit_err.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/clippy_lints/src/functions/result_unit_err.rs b/clippy_lints/src/functions/result_unit_err.rs
index 13863ec8381..71f6f87ae60 100644
--- a/clippy_lints/src/functions/result_unit_err.rs
+++ b/clippy_lints/src/functions/result_unit_err.rs
@@ -48,7 +48,7 @@ fn check_result_unit_err(cx: &LateContext<'_>, decl: &hir::FnDecl<'_>, item_span
         if !in_external_macro(cx.sess(), item_span);
         if let hir::FnRetTy::Return(ty) = decl.output;
         let ty = hir_ty_to_ty(cx.tcx, ty);
-        if is_type_diagnostic_item(cx, ty, sym::result_type);
+        if is_type_diagnostic_item(cx, ty, sym::Result);
         if let ty::Adt(_, substs) = ty.kind();
         let err_ty = substs.type_at(1);
         if err_ty.is_unit();