use if_chain::if_chain;
declare_clippy_lint! {
- /// **What it does:** Checks for wildcard dependencies in the `Cargo.toml`.
+ /// ### What it does
+ /// Checks for wildcard dependencies in the `Cargo.toml`.
///
- /// **Why is this bad?** [As the edition guide says](https://rust-lang-nursery.github.io/edition-guide/rust-2018/cargo-and-crates-io/crates-io-disallows-wildcard-dependencies.html),
+ /// ### Why is this bad?
+ /// [As the edition guide says](https://rust-lang-nursery.github.io/edition-guide/rust-2018/cargo-and-crates-io/crates-io-disallows-wildcard-dependencies.html),
/// it is highly unlikely that you work with any possible version of your dependency,
/// and wildcard dependencies would cause unnecessary breakage in the ecosystem.
///
- /// **Known problems:** None.
- ///
- /// **Example:**
- ///
+ /// ### Example
/// ```toml
/// [dependencies]
/// regex = "*"