diff options
Diffstat (limited to 'tests/file_yaml.rs')
-rw-r--r-- | tests/file_yaml.rs | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/tests/file_yaml.rs b/tests/file_yaml.rs index 8f7814e..59174e6 100644 --- a/tests/file_yaml.rs +++ b/tests/file_yaml.rs @@ -70,12 +70,15 @@ fn test_error_parse() { let mut c = Config::default(); let res = c.merge(File::new("tests/Settings-invalid", FileFormat::Yaml)); - let path_with_extension : PathBuf = ["tests", "Settings-invalid.yaml"].iter().collect(); + let path_with_extension: PathBuf = ["tests", "Settings-invalid.yaml"].iter().collect(); assert!(res.is_err()); assert_eq!( res.unwrap_err().to_string(), - format!("while parsing a block mapping, did not find expected key at \ - line 2 column 1 in {}", path_with_extension.display()) + format!( + "while parsing a block mapping, did not find expected key at \ + line 2 column 1 in {}", + path_with_extension.display() + ) ); } |