Fix test warnings
This commit is contained in:
parent
3fbb419157
commit
b3b8883412
|
@ -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());
|
||||||
|
|
Loading…
Reference in New Issue