From b3b8883412737d66e73d3c4571ad2ea4dcb178d6 Mon Sep 17 00:00:00 2001 From: Matt Ickstadt Date: Wed, 7 Mar 2018 09:47:48 -0600 Subject: [PATCH] Fix test warnings --- src/theme/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/theme/mod.rs b/src/theme/mod.rs index 3377a0f1..abe296ff 100644 --- a/src/theme/mod.rs +++ b/src/theme/mod.rs @@ -163,7 +163,7 @@ mod tests { #[test] fn theme_dir_overrides_defaults() { let temp = TempDir::new("mdbook").unwrap(); - ::std::fs::create_dir(temp.path().join("css")); + ::std::fs::create_dir(temp.path().join("css")).unwrap(); let files = [ "index.hbs", @@ -181,7 +181,7 @@ mod tests { "clipboard.min.js", ]; for file in &files { - File::create(&temp.path().join(file)); + File::create(&temp.path().join(file)).unwrap(); } let got = Theme::new(temp.path());