about summary refs log tree commit diff
diff options
context:
space:
mode:
authorDániel Buga <bugadani@gmail.com>2020-07-26 20:52:00 +0200
committerDániel Buga <bugadani@gmail.com>2020-08-16 20:27:54 +0200
commit94cf90e5a56bbd9adbf6d6181d046ede9b96a7d8 (patch)
tree48adfa9801baa629fa3bd86ee129de3d045c8e59
parenta7083eea1c8821ff187218f55a1ac17b0f2c0fcb (diff)
downloadrust-94cf90e5a56bbd9adbf6d6181d046ede9b96a7d8.tar.gz
rust-94cf90e5a56bbd9adbf6d6181d046ede9b96a7d8.zip
Apply suggested change
Co-authored-by: Philipp Krones <hello@philkrones.com>
-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 6693c358a02..4578c228107 100644
--- a/clippy_lints/src/methods/mod.rs
+++ b/clippy_lints/src/methods/mod.rs
@@ -2717,8 +2717,8 @@ fn lint_lazy_eval<'tcx>(
     allow_variant_calls: bool,
     simplify_using: &str,
 ) {
-    let is_option = is_type_diagnostic_item(cx, cx.tables.expr_ty(&args[0]), sym!(option_type));
-    let is_result = is_type_diagnostic_item(cx, cx.tables.expr_ty(&args[0]), sym!(result_type));
+    let is_option = is_type_diagnostic_item(cx, cx.tables().expr_ty(&args[0]), sym!(option_type));
+    let is_result = is_type_diagnostic_item(cx, cx.tables().expr_ty(&args[0]), sym!(result_type));
 
     if !is_option && !is_result {
         return;