Add test for wildcard_dependencies

This commit is contained in:
Eduardo Broto 2020-05-18 20:55:12 +02:00
parent bd9b09e293
commit 96af3e8360
5 changed files with 24 additions and 0 deletions

View File

@ -0,0 +1,6 @@
[package]
name = "wildcard_dependencies"
version = "0.1.0"
[dependencies]
regex = "*"

View File

@ -0,0 +1,3 @@
#![warn(clippy::wildcard_dependencies)]
fn main() {}

View File

@ -0,0 +1,6 @@
error: wildcard dependency for `regex`
|
= note: `-D clippy::wildcard-dependencies` implied by `-D warnings`
error: aborting due to previous error

View File

@ -0,0 +1,6 @@
[package]
name = "wildcard_dependencies"
version = "0.1.0"
[dependencies]
regex = "1"

View File

@ -0,0 +1,3 @@
#![warn(clippy::wildcard_dependencies)]
fn main() {}