mirror of
https://github.com/rust-lang/rust-clippy
synced 2025-02-17 14:38:46 +00:00
Minor changes on clippy_lints/src/wildcard_dependencies.rs
This commit is contained in:
parent
0263ddde92
commit
fa6c9f838c
1 changed files with 2 additions and 0 deletions
|
@ -25,6 +25,7 @@ use semver;
|
|||
/// **Known problems:** None.
|
||||
///
|
||||
/// **Example:**
|
||||
///
|
||||
/// ```toml
|
||||
/// [dependencies]
|
||||
/// regex = "*"
|
||||
|
@ -53,6 +54,7 @@ impl EarlyLintPass for Pass {
|
|||
};
|
||||
|
||||
lazy_static! {
|
||||
// VersionReq::any() does not work
|
||||
static ref WILDCARD_VERSION_REQ: semver::VersionReq = semver::VersionReq::parse("*").unwrap();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue