Fix test warnings

This commit is contained in:
Matt Ickstadt 2018-03-07 09:47:48 -06:00
parent 3fbb419157
commit b3b8883412
1 changed files with 2 additions and 2 deletions

View File

@ -163,7 +163,7 @@ mod tests {
#[test] #[test]
fn theme_dir_overrides_defaults() { fn theme_dir_overrides_defaults() {
let temp = TempDir::new("mdbook").unwrap(); 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 = [ let files = [
"index.hbs", "index.hbs",
@ -181,7 +181,7 @@ mod tests {
"clipboard.min.js", "clipboard.min.js",
]; ];
for file in &files { for file in &files {
File::create(&temp.path().join(file)); File::create(&temp.path().join(file)).unwrap();
} }
let got = Theme::new(temp.path()); let got = Theme::new(temp.path());