From 4aa1a957144c99ab46107e5c6031b1d7870e2a21 Mon Sep 17 00:00:00 2001 From: David Rheinsberg Date: Fri, 6 Oct 2023 13:49:38 +0200 Subject: [PATCH] cargo/targets: fix error-message typo Fix typo: "with with" -> "with" --- src/cargo/util/toml/targets.rs | 2 +- tests/testsuite/build.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cargo/util/toml/targets.rs b/src/cargo/util/toml/targets.rs index afc4f258f69..8455ae95b3e 100644 --- a/src/cargo/util/toml/targets.rs +++ b/src/cargo/util/toml/targets.rs @@ -309,7 +309,7 @@ fn clean_bins( if restricted_names::is_conflicting_artifact_name(&name) { anyhow::bail!( "the binary target name `{}` is forbidden, \ - it conflicts with with cargo's build directory names", + it conflicts with cargo's build directory names", name ) } diff --git a/tests/testsuite/build.rs b/tests/testsuite/build.rs index 1afa83918f0..0466ff452c4 100644 --- a/tests/testsuite/build.rs +++ b/tests/testsuite/build.rs @@ -465,7 +465,7 @@ fn cargo_compile_with_forbidden_bin_target_name() { [ERROR] failed to parse manifest at `[..]` Caused by: - the binary target name `build` is forbidden, it conflicts with with cargo's build directory names + the binary target name `build` is forbidden, it conflicts with cargo's build directory names ", ) .run();