Update doc wildcard_dependencies
This commit is contained in:
parent
c2d23ad0df
commit
3f4aa9bf6e
1 changed files with 9 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue