summaryrefslogtreecommitdiffstats
path: root/tests/file_yaml.rs
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2020-10-01 14:45:50 +0200
committerMatthias Beyer <mail@beyermatthias.de>2020-10-01 14:45:50 +0200
commit1eb140881b26328ed1b17615fee32427baafadf6 (patch)
treeb1364beef0d67ba33718750c070d351b3a23c3b9 /tests/file_yaml.rs
parent6c51d3b6b2dbe49d1b40fd0f0326b73f16357f72 (diff)
Run cargo-fmt
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Diffstat (limited to 'tests/file_yaml.rs')
-rw-r--r--tests/file_yaml.rs9
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()
+ )
);
}