Skip to content

Commit

Permalink
Update doc wildcard_dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-semenyuk committed Dec 20, 2024
1 parent c2d23ad commit 1d9baff
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions clippy_lints/src/cargo/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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_2 = "~1.2.3"
///
/// # pin the version to a specific version
/// some_crate_3 = "1.2.3"
/// ```
#[clippy::version = "1.32.0"]
pub WILDCARD_DEPENDENCIES,
cargo,
Expand Down

0 comments on commit 1d9baff

Please sign in to comment.