Skip to content

Commit 724273e

Browse files
committed
Minor test fix (error text comparison)
Serde's errors for missing fields are a lil' different than the ones from our Deserializer.
1 parent 62d6233 commit 724273e

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

tests/testsuite/config.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -687,10 +687,7 @@ Caused by:
687687
f3: i64,
688688
big: i64,
689689
}
690-
assert_error(
691-
config.get::<S>("S").unwrap_err(),
692-
"missing config key `S.f3`",
693-
);
690+
assert_error(config.get::<S>("S").unwrap_err(), "missing field `f3`");
694691
}
695692

696693
#[cargo_test]

0 commit comments

Comments
 (0)