mirror of
https://github.com/rust-lang/cargo.git
synced 2025-10-01 11:30:39 +00:00
Minor test fix (error text comparison)
Serde's errors for missing fields are a lil' different than the ones from our Deserializer.
This commit is contained in:
parent
62d62333c0
commit
724273ed25
@ -687,10 +687,7 @@ Caused by:
|
|||||||
f3: i64,
|
f3: i64,
|
||||||
big: i64,
|
big: i64,
|
||||||
}
|
}
|
||||||
assert_error(
|
assert_error(config.get::<S>("S").unwrap_err(), "missing field `f3`");
|
||||||
config.get::<S>("S").unwrap_err(),
|
|
||||||
"missing config key `S.f3`",
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cargo_test]
|
#[cargo_test]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user