Address comments from PR review

This commit is contained in:
Eduardo Broto 2020-05-21 14:46:04 +02:00
parent 5d0135e222
commit 7ff71199df
8 changed files with 9 additions and 2 deletions

View File

@ -139,6 +139,7 @@ fn get_manifest_contents(lint_name: &str, hint: &str) -> String {
[package] [package]
name = "{}" name = "{}"
version = "0.1.0" version = "0.1.0"
publish = false
"#, "#,
hint, lint_name hint, lint_name
) )

View File

@ -147,7 +147,7 @@ fn run_tests(config: &compiletest::Config, mut tests: Vec<tester::TestDescAndFn>
Ok(true) => {}, Ok(true) => {},
Ok(false) => panic!("Some tests failed"), Ok(false) => panic!("Some tests failed"),
Err(e) => { Err(e) => {
println!("I/O failure during tests: {:?}", e); panic!("I/O failure during tests: {:?}", e);
}, },
} }
} }
@ -223,7 +223,7 @@ fn run_tests(
Ok(true) => {}, Ok(true) => {},
Ok(false) => panic!("Some tests failed"), Ok(false) => panic!("Some tests failed"),
Err(e) => { Err(e) => {
println!("I/O failure during tests: {:?}", e); panic!("I/O failure during tests: {:?}", e);
}, },
} }
} }

View File

@ -1,3 +1,4 @@
[package] [package]
name = "cargo_common_metadata" name = "cargo_common_metadata"
version = "0.1.0" version = "0.1.0"
publish = false

View File

@ -1,6 +1,7 @@
[package] [package]
name = "cargo_common_metadata" name = "cargo_common_metadata"
version = "0.1.0" version = "0.1.0"
publish = false
authors = ["Random person from the Internet <someone@someplace.org>"] authors = ["Random person from the Internet <someone@someplace.org>"]
description = "A test package for the cargo_common_metadata lint" description = "A test package for the cargo_common_metadata lint"
repository = "https://github.com/someone/cargo_common_metadata" repository = "https://github.com/someone/cargo_common_metadata"

View File

@ -1,6 +1,7 @@
[package] [package]
name = "multiple_crate_versions" name = "multiple_crate_versions"
version = "0.1.0" version = "0.1.0"
publish = false
[dependencies] [dependencies]
ctrlc = "=3.1.0" ctrlc = "=3.1.0"

View File

@ -1,6 +1,7 @@
[package] [package]
name = "cargo_common_metadata" name = "cargo_common_metadata"
version = "0.1.0" version = "0.1.0"
publish = false
[dependencies] [dependencies]
regex = "1.3.7" regex = "1.3.7"

View File

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

View File

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