]> git.lizzy.rs Git - rust.git/blobdiff - clippy_lints/src/redundant_slicing.rs
modify code
[rust.git] / clippy_lints / src / redundant_slicing.rs
index 0c460150087b1b6f35e385c7bfa54792bf639e70..7c88b42ea3199a771b40f5692f95923cf6928fa6 100644 (file)
@@ -34,6 +34,7 @@
     ///     x
     /// }
     /// ```
+    #[clippy::version = "1.51.0"]
     pub REDUNDANT_SLICING,
     complexity,
     "redundant slicing of the whole range of a type"
@@ -41,7 +42,7 @@
 
 declare_lint_pass!(RedundantSlicing => [REDUNDANT_SLICING]);
 
-impl LateLintPass<'_> for RedundantSlicing {
+impl<'tcx> LateLintPass<'tcx> for RedundantSlicing {
     fn check_expr(&mut self, cx: &LateContext<'tcx>, expr: &'tcx Expr<'_>) {
         if expr.span.from_expansion() {
             return;