Skip to content

Commit 9c41822

Browse files
bugadaniflip1995
andcommitted
Apply suggested change
Co-authored-by: Philipp Krones <hello@philkrones.com>
1 parent 94cf90e commit 9c41822

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
@@ -2717,8 +2717,8 @@ fn lint_lazy_eval<'tcx>(
27172717
allow_variant_calls: bool,
27182718
simplify_using: &str,
27192719
) {
2720-
let is_option = is_type_diagnostic_item(cx, cx.tables().expr_ty(&args[0]), sym!(option_type));
2721-
let is_result = is_type_diagnostic_item(cx, cx.tables().expr_ty(&args[0]), sym!(result_type));
2720+
let is_option = is_type_diagnostic_item(cx, cx.typeck_results().expr_ty(&args[0]), sym!(option_type));
2721+
let is_result = is_type_diagnostic_item(cx, cx.typeck_results().expr_ty(&args[0]), sym!(result_type));
27222722

27232723
if !is_option && !is_result {
27242724
return;

0 commit comments

Comments
 (0)