Skip to content

Commit 6cd7af1

Browse files
bugadaniflip1995
andauthored
Apply suggested change
Co-authored-by: Philipp Krones <[email protected]>
1 parent 14b50a0 commit 6cd7af1

File tree

1 file changed

+2
-2
lines changed
  • clippy_lints/src/methods

1 file changed

+2
-2
lines changed

clippy_lints/src/methods/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2657,8 +2657,8 @@ fn lint_lazy_eval<'tcx>(
26572657
allow_variant_calls: bool,
26582658
simplify_using: &str,
26592659
) {
2660-
let is_option = is_type_diagnostic_item(cx, cx.tables().expr_ty(&args[0]), sym!(option_type));
2661-
let is_result = is_type_diagnostic_item(cx, cx.tables().expr_ty(&args[0]), sym!(result_type));
2660+
let is_option = is_type_diagnostic_item(cx, cx.typeck_results().expr_ty(&args[0]), sym!(option_type));
2661+
let is_result = is_type_diagnostic_item(cx, cx.typeck_results().expr_ty(&args[0]), sym!(result_type));
26622662

26632663
if !is_option && !is_result {
26642664
return;

0 commit comments

Comments
 (0)