]> git.lizzy.rs Git - rust.git/blobdiff - src/tools/clippy/clippy_lints/src/collapsible_if.rs
Merge commit 'a5d597637dcb78dc73f93561ce474f23d4177c35' into clippyup
[rust.git] / src / tools / clippy / clippy_lints / src / collapsible_if.rs
index 4aa8798071568d1c01f2f6a95663007d98c885f6..f03f34e5a4b381e0fc238a252dcafb5d914bf2f4 100644 (file)
@@ -47,6 +47,7 @@
     ///     …
     /// }
     /// ```
+    #[clippy::version = "pre 1.29.0"]
     pub COLLAPSIBLE_IF,
     style,
     "nested `if`s that can be collapsed (e.g., `if x { if y { ... } }`"
@@ -82,6 +83,7 @@
     ///     …
     /// }
     /// ```
+    #[clippy::version = "1.51.0"]
     pub COLLAPSIBLE_ELSE_IF,
     style,
     "nested `else`-`if` expressions that can be collapsed (e.g., `else { if x { ... } }`)"