Skip to content

Commit 10045db

Browse files
authored
Update doc wildcard_dependencies (#13810)
Currently https://rust-lang.github.io/rust-clippy/master/index.html#wildcard_dependencies doc doesn't contain explanation how it should be so added more details ---- changelog: none
2 parents e359e88 + 3f4aa9b commit 10045db

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)