]> git.lizzy.rs Git - rust.git/blobdiff - clippy_lints/src/unit_types/mod.rs
Added `clippy::version` attribute to all normal lints
[rust.git] / clippy_lints / src / unit_types / mod.rs
index 66b1abbe50b9d389bc623fbf3d1324fab541f07b..d9f5b53b413a03dd5734a2edadfa202f7bf7ee98 100644 (file)
@@ -21,6 +21,7 @@
     ///     1;
     /// };
     /// ```
+    #[clippy::version = "pre 1.29.0"]
     pub LET_UNIT_VALUE,
     pedantic,
     "creating a `let` binding to a value of unit type, which usually can't be used afterwards"
@@ -68,6 +69,7 @@
     /// assert_eq!({ foo(); }, { bar(); });
     /// ```
     /// will always succeed
+    #[clippy::version = "pre 1.29.0"]
     pub UNIT_CMP,
     correctness,
     "comparing unit values"
@@ -88,6 +90,7 @@
     ///     baz(a);
     /// })
     /// ```
+    #[clippy::version = "pre 1.29.0"]
     pub UNIT_ARG,
     complexity,
     "passing unit to a function"