]> git.lizzy.rs Git - rust.git/blobdiff - clippy_lints/src/semicolon_if_nothing_returned.rs
modify code
[rust.git] / clippy_lints / src / semicolon_if_nothing_returned.rs
index d3b4929a18925b832fb7431fc331586f3a7074e4..729694da46d5c2ee6a3098d2b9000495cf4a753d 100644 (file)
@@ -29,6 +29,7 @@
     ///     println!("Hello world");
     /// }
     /// ```
+    #[clippy::version = "1.52.0"]
     pub SEMICOLON_IF_NOTHING_RETURNED,
     pedantic,
     "add a semicolon if nothing is returned"
@@ -36,7 +37,7 @@
 
 declare_lint_pass!(SemicolonIfNothingReturned => [SEMICOLON_IF_NOTHING_RETURNED]);
 
-impl LateLintPass<'_> for SemicolonIfNothingReturned {
+impl<'tcx> LateLintPass<'tcx> for SemicolonIfNothingReturned {
     fn check_block(&mut self, cx: &LateContext<'tcx>, block: &'tcx Block<'tcx>) {
         if_chain! {
             if !block.span.from_expansion();