Skip to content

Commit 3f4aa9b

Browse files
committed
Update doc wildcard_dependencies
1 parent c2d23ad commit 3f4aa9b

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

clippy_lints/src/cargo/mod.rs

+9
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,15 @@ declare_clippy_lint! {
161161
/// [dependencies]
162162
/// regex = "*"
163163
/// ```
164+
/// Use instead:
165+
/// ```toml
166+
/// [dependencies]
167+
/// # allow patch updates, but not minor or major version changes
168+
/// some_crate_1 = "~1.2.3"
169+
///
170+
/// # pin the version to a specific version
171+
/// some_crate_2 = "=1.2.3"
172+
/// ```
164173
#[clippy::version = "1.32.0"]
165174
pub WILDCARD_DEPENDENCIES,
166175
cargo,

0 commit comments

Comments
 (0)