Update doc wildcard_dependencies

This commit is contained in:
alexey semenyuk 2024-12-11 12:59:58 +05:00 committed by Alexey Semenyuk
parent c2d23ad0df
commit 3f4aa9bf6e

View file

@ -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,