Skip to content

Commit 3842ecb

Browse files
committed
Reimplement with toml as test format, as module tests only with "toml" feature enabled
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
1 parent 54ccce8 commit 3842ecb

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

tests/errors.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -136,10 +136,7 @@ fn error_with_path() {
136136

137137
#[test]
138138
fn test_error_root_not_table() {
139-
match Config::builder()
140-
.add_source(File::from_str(r#"false"#, FileFormat::Json5))
141-
.build()
142-
{
139+
match Config::builder().add_source(File::from_str("false", FileFormat::Toml)).build() {
143140
Ok(_) => panic!("Should not merge if root is not a table"),
144141
Err(e) => match e {
145142
ConfigError::FileParse { cause, .. } => assert_eq!(

0 commit comments

Comments
 (0)