Skip to content

Commit 7067d0d

Browse files
committed
Improve warning message grammar
1 parent c31877d commit 7067d0d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/cargo/core/workspace.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1006,7 +1006,7 @@ impl<'cfg> Workspace<'cfg> {
10061006
self.config.shell().warn(
10071007
format_args!("\
10081008
some crates are on edition {edition} which defaults to `resolver = \"{resolver}\"`,\n\
1009-
\x20 but a virtual workspace defaults to `resolver = \"1\"`\n\
1009+
\x20 but virtual workspaces default to `resolver = \"1\"`\n\
10101010
\x20 specify the desired resolver version explicitly in the workspace root's manifest\
10111011
",
10121012
))?;

tests/testsuite/features2.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1432,7 +1432,7 @@ fn edition_2021_workspace_member() {
14321432
.with_stderr(
14331433
"\
14341434
warning: some crates are on edition 2021 which defaults to `resolver = \"2\"`,
1435-
but a virtual workspace defaults to `resolver = \"1\"`
1435+
but virtual workspaces default to `resolver = \"1\"`
14361436
specify the desired resolver version explicitly in the workspace root's manifest
14371437
[CHECKING] a v0.1.0 [..]
14381438
[FINISHED] [..]

0 commit comments

Comments
 (0)