commit 8711e830338ae1fb1479cd0d2ed33cd865083ffe parent aa8da443e4c94c1dcae319360869c181aa830b1f Author: marisa <mokou@posteo.de> Date: Sat, 9 Nov 2019 23:49:12 +0100 Fix multi-line function chain for coverage Diffstat:
M | shtola/src/lib.rs | | | 18 | ++++++++---------- |
1 file changed, 8 insertions(+), 10 deletions(-)
diff --git a/shtola/src/lib.rs b/shtola/src/lib.rs @@ -220,16 +220,14 @@ fn frontmatter_works() { s.clean(true); let r = s.build().unwrap(); let (_, matter_file) = r.files.iter().last().unwrap(); - assert_eq!( - matter_file.frontmatter[0] - .as_hash() - .unwrap() - .get(&Yaml::from_str("hello")) - .unwrap() - .as_str() - .unwrap(), - "bro" - ); + let frontmatter = matter_file.frontmatter[0] + .as_hash() + .unwrap() + .get(&Yaml::from_str("hello")) + .unwrap() + .as_str() + .unwrap(); + assert_eq!(frontmatter, "bro"); } #[test]