prefer PathBuf::display over {:?}

This commit is contained in:
Dale Wijnand 2018-04-20 22:21:33 +01:00
parent abbd69e747
commit 54e7bc51a2
No known key found for this signature in database
GPG Key ID: 4F256E3D151DF5EF
3 changed files with 3 additions and 3 deletions

View File

@ -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!(

View File

@ -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 \

View File

@ -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 \