about summary refs log tree commit diff
diff options
context:
space:
mode:
authoralexey semenyuk <alexsemenyuk88@gmail.com>2024-12-11 12:59:58 +0500
committerAlexey Semenyuk <alexsemenyuk88@gmail.com>2025-01-18 01:20:22 +0500
commit3f4aa9bf6e3816408c8a516d57010b5ae70728fe (patch)
treed2534e3c9d5a637ace48dae7cafc623d524b4813
parentc2d23ad0df5b3603ea0a1d2f4892fb84faaf8a3f (diff)
downloadrust-3f4aa9bf6e3816408c8a516d57010b5ae70728fe.tar.gz
rust-3f4aa9bf6e3816408c8a516d57010b5ae70728fe.zip
Update doc wildcard_dependencies
-rw-r--r--clippy_lints/src/cargo/mod.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/clippy_lints/src/cargo/mod.rs b/clippy_lints/src/cargo/mod.rs
index 96a2b161464..60371dcd771 100644
--- a/clippy_lints/src/cargo/mod.rs
+++ b/clippy_lints/src/cargo/mod.rs
@@ -161,6 +161,15 @@ declare_clippy_lint! {
     /// [dependencies]
     /// regex = "*"
     /// ```
+    /// Use instead:
+    /// ```toml
+    /// [dependencies]
+    /// # allow patch updates, but not minor or major version changes
+    /// some_crate_1 = "~1.2.3"
+    ///
+    /// # pin the version to a specific version
+    /// some_crate_2 = "=1.2.3"
+    /// ```
     #[clippy::version = "1.32.0"]
     pub WILDCARD_DEPENDENCIES,
     cargo,