Make diangostic item names consistent

This commit is contained in:
Cameron Steffen
2021-10-02 18:51:01 -05:00
parent 2cb37a1911
commit e165c12932
96 changed files with 196 additions and 193 deletions

View File

@@ -67,7 +67,7 @@ impl CognitiveComplexity {
helper.visit_expr(expr);
let CcHelper { cc, returns } = helper;
let ret_ty = cx.typeck_results().node_type(expr.hir_id);
let ret_adjust = if is_type_diagnostic_item(cx, ret_ty, sym::result_type) {
let ret_adjust = if is_type_diagnostic_item(cx, ret_ty, sym::Result) {
returns
} else {
#[allow(clippy::integer_division)]