Skip to content

Commit 4ba14a6

Browse files
committed
Auto merge of #11483 - philpax:patch-1, r=weihanglo
fix(add): use the possessive in error message ### What does this PR try to resolve? While using `cargo add` to add some dependencies with features, I noticed this error message didn't use an apostrophe. A really minor issue, but it bugged me 😅
2 parents f8d488a + 249683b commit 4ba14a6

File tree

2 files changed

+2
-2
lines changed
  • src/bin/cargo/commands
  • tests/testsuite/cargo_add/multiple_conflicts_with_features

2 files changed

+2
-2
lines changed

src/bin/cargo/commands/add.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ fn parse_dependencies(config: &Config, matches: &ArgMatches) -> CargoResult<Vec<
256256
)
257257
})
258258
.collect::<Vec<_>>();
259-
anyhow::bail!("feature `{feature}` must be qualified by the dependency its being activated for, like {}", candidates.join(", "));
259+
anyhow::bail!("feature `{feature}` must be qualified by the dependency it's being activated for, like {}", candidates.join(", "));
260260
}
261261
crates
262262
.first_mut()
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
error: feature `nose` must be qualified by the dependency its being activated for, like `my-package1/nose`, `your-face/nose`
1+
error: feature `nose` must be qualified by the dependency it's being activated for, like `my-package1/nose`, `your-face/nose`

0 commit comments

Comments
 (0)