Skip to content

Commit dc3bee7

Browse files
committed
test(versioncheck): Use .no_deps()
1 parent 53ce28a commit dc3bee7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/versioncheck.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
#[test]
22
fn check_that_clippy_lints_has_the_same_version_as_clippy() {
33
let clippy_meta = cargo_metadata::MetadataCommand::new()
4+
.no_deps()
45
.exec()
56
.expect("could not obtain cargo metadata");
67
std::env::set_current_dir(std::env::current_dir().unwrap().join("clippy_lints")).unwrap();
78
let clippy_lints_meta = cargo_metadata::MetadataCommand::new()
9+
.no_deps()
810
.exec()
911
.expect("could not obtain cargo metadata");
1012
assert_eq!(clippy_lints_meta.packages[0].version, clippy_meta.packages[0].version);

0 commit comments

Comments
 (0)