Skip to content

Commit 4aa1a95

Browse files
committed
cargo/targets: fix error-message typo
Fix typo: "with with" -> "with"
1 parent 5a2ea19 commit 4aa1a95

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/cargo/util/toml/targets.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ fn clean_bins(
309309
if restricted_names::is_conflicting_artifact_name(&name) {
310310
anyhow::bail!(
311311
"the binary target name `{}` is forbidden, \
312-
it conflicts with with cargo's build directory names",
312+
it conflicts with cargo's build directory names",
313313
name
314314
)
315315
}

tests/testsuite/build.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,7 @@ fn cargo_compile_with_forbidden_bin_target_name() {
465465
[ERROR] failed to parse manifest at `[..]`
466466
467467
Caused by:
468-
the binary target name `build` is forbidden, it conflicts with with cargo's build directory names
468+
the binary target name `build` is forbidden, it conflicts with cargo's build directory names
469469
",
470470
)
471471
.run();

0 commit comments

Comments
 (0)