about summary refs log tree commit diff
diff options
context:
space:
mode:
authorNick Torres <nickrtorres@icloud.com>2020-04-04 15:02:38 -0700
committerNick Torres <nickrtorres@icloud.com>2020-04-04 15:02:38 -0700
commit325d0b69d2dffccecf48c5d7975ccd100141e1f5 (patch)
tree0126008c0fd0a0bcfcaa3b1cadb58dd6dd9b1d40
parent2533f56a0eaa4ebbeb607b6596d12e303f97e008 (diff)
downloadrust-325d0b69d2dffccecf48c5d7975ccd100141e1f5.tar.gz
rust-325d0b69d2dffccecf48c5d7975ccd100141e1f5.zip
result_map_or_into: fix dogfood_clippy error => {h,l}int
-rw-r--r--clippy_lints/src/methods/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/clippy_lints/src/methods/mod.rs b/clippy_lints/src/methods/mod.rs
index 9ff669515cf..7f4964da72e 100644
--- a/clippy_lints/src/methods/mod.rs
+++ b/clippy_lints/src/methods/mod.rs
@@ -2559,7 +2559,7 @@ fn lint_map_or_none<'a, 'tcx>(
         return;
     }
 
-    let (lint, msg, instead, hint) = {
+    let (lint_name, msg, instead, hint) = {
         let default_arg_is_none = if let hir::ExprKind::Path(ref qpath) = map_or_args[1].kind {
             match_qpath(qpath, &paths::OPTION_NONE)
         } else {
@@ -2606,7 +2606,7 @@ fn lint_map_or_none<'a, 'tcx>(
 
     span_lint_and_sugg(
         cx,
-        lint,
+        lint_name,
         expr.span,
         msg,
         instead,