mirror of
https://github.com/rust-lang/cargo
synced 2024-09-13 04:51:31 +00:00
Squash warnings on the nightly channel
This commit is contained in:
parent
1fefa5de26
commit
9f2ce1ffef
|
@ -177,7 +177,7 @@ rustup does not appear to be installed. Make sure that the appropriate
|
|||
},
|
||||
}
|
||||
|
||||
panic!(message);
|
||||
panic!("{}", message);
|
||||
}
|
||||
|
||||
/// The alternate target-triple to build with.
|
||||
|
|
|
@ -365,5 +365,5 @@ fn closed_output_ok() {
|
|||
.unwrap();
|
||||
let status = child.wait().unwrap();
|
||||
assert!(status.success());
|
||||
assert!(s.is_empty(), s);
|
||||
assert!(s.is_empty(), "{}", s);
|
||||
}
|
||||
|
|
|
@ -370,7 +370,11 @@ fn finds_git_author() {
|
|||
|
||||
let toml = paths::root().join("foo/Cargo.toml");
|
||||
let contents = fs::read_to_string(&toml).unwrap();
|
||||
assert!(contents.contains(r#"authors = ["foo <gitfoo>"]"#), contents);
|
||||
assert!(
|
||||
contents.contains(r#"authors = ["foo <gitfoo>"]"#),
|
||||
"{}",
|
||||
contents
|
||||
);
|
||||
}
|
||||
|
||||
#[cargo_test]
|
||||
|
@ -411,7 +415,11 @@ fn finds_git_author_in_included_config() {
|
|||
cargo_process("new foo/bar").run();
|
||||
let toml = paths::root().join("foo/bar/Cargo.toml");
|
||||
let contents = fs::read_to_string(&toml).unwrap();
|
||||
assert!(contents.contains(r#"authors = ["foo <bar>"]"#), contents,);
|
||||
assert!(
|
||||
contents.contains(r#"authors = ["foo <bar>"]"#),
|
||||
"{}",
|
||||
contents
|
||||
);
|
||||
}
|
||||
|
||||
#[cargo_test]
|
||||
|
@ -632,7 +640,7 @@ fn new_with_blank_email() {
|
|||
.run();
|
||||
|
||||
let contents = fs::read_to_string(paths::root().join("foo/Cargo.toml")).unwrap();
|
||||
assert!(contents.contains(r#"authors = ["Sen"]"#), contents);
|
||||
assert!(contents.contains(r#"authors = ["Sen"]"#), "{}", contents);
|
||||
}
|
||||
|
||||
#[cargo_test]
|
||||
|
|
Loading…
Reference in a new issue