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, } }