Skip to content

Commit

Permalink
Auto merge of #11483 - philpax:patch-1, r=weihanglo
Browse files Browse the repository at this point in the history
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 😅
  • Loading branch information
bors committed Dec 15, 2022
2 parents f8d488a + 249683b commit 4ba14a6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/bin/cargo/commands/add.rs
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ fn parse_dependencies(config: &Config, matches: &ArgMatches) -> CargoResult<Vec<
)
})
.collect::<Vec<_>>();
anyhow::bail!("feature `{feature}` must be qualified by the dependency its being activated for, like {}", candidates.join(", "));
anyhow::bail!("feature `{feature}` must be qualified by the dependency it's being activated for, like {}", candidates.join(", "));
}
crates
.first_mut()
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
error: feature `nose` must be qualified by the dependency its being activated for, like `my-package1/nose`, `your-face/nose`
error: feature `nose` must be qualified by the dependency it's being activated for, like `my-package1/nose`, `your-face/nose`

0 comments on commit 4ba14a6

Please sign in to comment.