mirror of
https://github.com/rust-lang/cargo.git
synced 2025-09-28 11:20:36 +00:00
prefer PathBuf::display over {:?}
This commit is contained in:
parent
abbd69e747
commit
54e7bc51a2
@ -590,7 +590,7 @@ fn toml_targets_and_inferred(
|
||||
let mut rem_targets_str = String::new();
|
||||
for t in rem_targets.iter() {
|
||||
if let Some(p) = t.path.clone() {
|
||||
rem_targets_str.push_str(&format!("* {:?}\n", p.0))
|
||||
rem_targets_str.push_str(&format!("* {}\n", p.0.display()))
|
||||
}
|
||||
}
|
||||
warnings.push(format!(
|
||||
|
@ -757,7 +757,7 @@ An explicit [[bench]] section is specified in Cargo.toml which currently disable
|
||||
automatically inferring other benchmark targets. This inference behavior will change in \
|
||||
the Rust 2018 edition and the following files will be included as a benchmark target:
|
||||
|
||||
* \"[..]bench_basic.rs\"
|
||||
* [..]bench_basic.rs
|
||||
|
||||
This is likely to break cargo build or cargo test as these files may not be ready to be compiled \
|
||||
as a benchmark target today. You can future-proof yourself and disable this warning by \
|
||||
|
@ -450,7 +450,7 @@ An explicit [[example]] section is specified in Cargo.toml which currently disab
|
||||
automatically inferring other example targets. This inference behavior will change in \
|
||||
the Rust 2018 edition and the following files will be included as a example target:
|
||||
|
||||
* \"[..]a.rs\"
|
||||
* [..]a.rs
|
||||
|
||||
This is likely to break cargo build or cargo test as these files may not be ready to be compiled \
|
||||
as a example target today. You can future-proof yourself and disable this warning by \
|
||||
|
Loading…
x
Reference in New Issue
Block a user