From 54e7bc51a280675ddcbf723ce3d5777179a4688f Mon Sep 17 00:00:00 2001 From: Dale Wijnand Date: Fri, 20 Apr 2018 22:21:33 +0100 Subject: [PATCH] prefer PathBuf::display over {:?} --- src/cargo/util/toml/targets.rs | 2 +- tests/testsuite/bench.rs | 2 +- tests/testsuite/run.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/cargo/util/toml/targets.rs b/src/cargo/util/toml/targets.rs index 2384dc28c..7f7e5a203 100644 --- a/src/cargo/util/toml/targets.rs +++ b/src/cargo/util/toml/targets.rs @@ -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!( diff --git a/tests/testsuite/bench.rs b/tests/testsuite/bench.rs index 6f6a0d116..55950f539 100644 --- a/tests/testsuite/bench.rs +++ b/tests/testsuite/bench.rs @@ -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 \ diff --git a/tests/testsuite/run.rs b/tests/testsuite/run.rs index 7f2d7d6ed..ffb2f38b4 100644 --- a/tests/testsuite/run.rs +++ b/tests/testsuite/run.rs @@ -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 \