]> git.lizzy.rs Git - rust.git/blobdiff - clippy_lints/src/map_unit_fn.rs
Merge remote-tracking branch 'upstream/master' into rustup
[rust.git] / clippy_lints / src / map_unit_fn.rs
index 40de9ffcd4e253d2c26ef7cc997e0969ec200bc7..a84de3e079b3918b9c0bb98d91f84d2862278e46 100644 (file)
@@ -47,6 +47,7 @@
     ///     log_err_msg(format_msg(msg));
     /// }
     /// ```
+    #[clippy::version = "pre 1.29.0"]
     pub OPTION_MAP_UNIT_FN,
     complexity,
     "using `option.map(f)`, where `f` is a function or closure that returns `()`"
@@ -87,6 +88,7 @@
     ///     log_err_msg(format_msg(msg));
     /// };
     /// ```
+    #[clippy::version = "pre 1.29.0"]
     pub RESULT_MAP_UNIT_FN,
     complexity,
     "using `result.map(f)`, where `f` is a function or closure that returns `()`"