about summary refs log tree commit diff
path: root/clippy_lints/src/reference.rs
diff options
context:
space:
mode:
authorOliver Schneider <github35764891676564198441@oli-obk.de>2018-07-23 13:01:12 +0200
committerOliver Schneider <github35764891676564198441@oli-obk.de>2018-07-23 13:01:12 +0200
commitafd91248eda02cf2968e4e02c77b6c10ecd3fd4f (patch)
treec7576421245bef3401158338f99a7d8641a90187 /clippy_lints/src/reference.rs
parentff0e5f967fde38242a1f2bf852082d2e105fc29c (diff)
downloadrust-afd91248eda02cf2968e4e02c77b6c10ecd3fd4f.tar.gz
rust-afd91248eda02cf2968e4e02c77b6c10ecd3fd4f.zip
Rustup
Diffstat (limited to 'clippy_lints/src/reference.rs')
-rw-r--r--clippy_lints/src/reference.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/clippy_lints/src/reference.rs b/clippy_lints/src/reference.rs
index 27aca6f4bf1..f349f46d926 100644
--- a/clippy_lints/src/reference.rs
+++ b/clippy_lints/src/reference.rs
@@ -39,7 +39,7 @@ fn without_parens(mut e: &Expr) -> &Expr {
 }
 
 impl EarlyLintPass for Pass {
-    fn check_expr(&mut self, cx: &EarlyContext, e: &Expr) {
+    fn check_expr(&mut self, cx: &EarlyContext<'_>, e: &Expr) {
         if_chain! {
             if let ExprKind::Unary(UnOp::Deref, ref deref_target) = e.node;
             if let ExprKind::AddrOf(_, ref addrof_target) = without_parens(deref_target).node;
@@ -84,7 +84,7 @@ impl LintPass for DerefPass {
 }
 
 impl EarlyLintPass for DerefPass {
-    fn check_expr(&mut self, cx: &EarlyContext, e: &Expr) {
+    fn check_expr(&mut self, cx: &EarlyContext<'_>, e: &Expr) {
         if_chain! {
             if let ExprKind::Field(ref object, ref field_name) = e.node;
             if let ExprKind::Paren(ref parened) = object.node;