about summary refs log tree commit diff
path: root/clippy_lints/src/drop_forget_ref.rs
diff options
context:
space:
mode:
Diffstat (limited to 'clippy_lints/src/drop_forget_ref.rs')
-rw-r--r--clippy_lints/src/drop_forget_ref.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/clippy_lints/src/drop_forget_ref.rs b/clippy_lints/src/drop_forget_ref.rs
index 9de9056c140..014873eb132 100644
--- a/clippy_lints/src/drop_forget_ref.rs
+++ b/clippy_lints/src/drop_forget_ref.rs
@@ -119,7 +119,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for DropForgetRef {
                 let lint;
                 let msg;
                 let arg = &args[0];
-                let arg_ty = cx.tables.expr_ty(arg);
+                let arg_ty = cx.tables().expr_ty(arg);
 
                 if let ty::Ref(..) = arg_ty.kind {
                     if match_def_path(cx, def_id, &paths::DROP) {