Skip to content

Commit 3513780

Browse files
committed
Auto merge of #11235 - epage:clap, r=weihanglo
chore: Update tests for latest clap
2 parents b592ba4 + 5f30808 commit 3513780

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ toml_edit = { version = "0.14.3", features = ["serde", "easy", "perf"] }
6262
unicode-xid = "0.2.0"
6363
url = "2.2.2"
6464
walkdir = "2.2"
65-
clap = "4.0.4"
65+
clap = "4.0.15"
6666
unicode-width = "0.1.5"
6767
openssl = { version = '0.10.11', optional = true }
6868
im-rc = "15.0.0"

tests/testsuite/metadata.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1910,7 +1910,7 @@ fn cargo_metadata_bad_version() {
19101910
.with_status(1)
19111911
.with_stderr_contains(
19121912
"\
1913-
error: \"2\" isn't a valid value for '--format-version <VERSION>'
1913+
error: '2' isn't a valid value for '--format-version <VERSION>'
19141914
[possible values: 1]
19151915
",
19161916
)

tests/testsuite/new.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ fn new_default_edition() {
380380
#[cargo_test]
381381
fn new_with_bad_edition() {
382382
cargo_process("new --edition something_else foo")
383-
.with_stderr_contains("error: \"something_else\" isn't a valid value[..]")
383+
.with_stderr_contains("error: 'something_else' isn't a valid value[..]")
384384
.with_status(1)
385385
.run();
386386
}

0 commit comments

Comments
 (0)