diff options
| author | Dániel Buga <bugadani@gmail.com> | 2020-07-26 21:08:07 +0200 |
|---|---|---|
| committer | Dániel Buga <bugadani@gmail.com> | 2020-08-16 20:27:54 +0200 |
| commit | 9c41822d34c69dbfded4d9d8b4b8962564be80f1 (patch) | |
| tree | f78e11b7a2c7f5491461f60d49085b49738a75e8 | |
| parent | 94cf90e5a56bbd9adbf6d6181d046ede9b96a7d8 (diff) | |
| download | rust-9c41822d34c69dbfded4d9d8b4b8962564be80f1.tar.gz rust-9c41822d34c69dbfded4d9d8b4b8962564be80f1.zip | |
Apply suggested change
Co-authored-by: Philipp Krones <hello@philkrones.com>
| -rw-r--r-- | clippy_lints/src/methods/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clippy_lints/src/methods/mod.rs b/clippy_lints/src/methods/mod.rs index 4578c228107..70a6b1f5021 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.typeck_results().expr_ty(&args[0]), sym!(option_type)); + let is_result = is_type_diagnostic_item(cx, cx.typeck_results().expr_ty(&args[0]), sym!(result_type)); if !is_option && !is_result { return; |
