]> git.proxmox.com Git - cargo.git/commitdiff
prefer PathBuf::display over {:?}
authorDale Wijnand <dale.wijnand@gmail.com>
Fri, 20 Apr 2018 21:21:33 +0000 (22:21 +0100)
committerDale Wijnand <dale.wijnand@gmail.com>
Fri, 20 Apr 2018 21:21:33 +0000 (22:21 +0100)
src/cargo/util/toml/targets.rs
tests/testsuite/bench.rs
tests/testsuite/run.rs

index 2384dc28cf8b6cee9251cc909d6970d1d7e09724..7f7e5a203a51c0cb5a1af844de79b84620c9221f 100644 (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!(
index 6f6a0d116c580334a305dfd57a7fd51370c8c165..55950f539fc4ae85e120b5590f2e6672a13f4cad 100644 (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 \
index 7f2d7d6ed950631809647873f97b1954e8830ce0..ffb2f38b461887147e058a59090e2ed9a2426458 100644 (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 \