From 3ba4c3a9b179be4ed7e169475914997270f13b77 Mon Sep 17 00:00:00 2001 From: Michael Wright Date: Wed, 14 Nov 2018 08:43:35 +0200 Subject: [PATCH] Fix `use_self` violation --- clippy_lints/src/misc_early.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/clippy_lints/src/misc_early.rs b/clippy_lints/src/misc_early.rs index 550d7f24210..8f2f36ff560 100644 --- a/clippy_lints/src/misc_early.rs +++ b/clippy_lints/src/misc_early.rs @@ -205,8 +205,8 @@ struct ReturnVisitor { } impl ReturnVisitor { - fn new() -> ReturnVisitor { - ReturnVisitor { + fn new() -> Self { + Self { found_return: false, } }