Skip to content

Commit

Permalink
cargo/targets: fix error-message typo
Browse files Browse the repository at this point in the history
Fix typo: "with with" -> "with"
  • Loading branch information
dvdhrm committed Oct 6, 2023
1 parent 5a2ea19 commit 4aa1a95
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/cargo/util/toml/targets.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
}
Expand Down
2 changes: 1 addition & 1 deletion tests/testsuite/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 4aa1a95

Please sign in to comment.