Fix tidy error.

This commit is contained in:
Wesley Norris 2018-12-08 14:22:08 -05:00
parent 1318e53ea8
commit a3f7f97205

View File

@ -284,8 +284,16 @@ fn run_test(test: &str, cratename: &str, filename: &FileName, line: usize,
let outdir = Mutex::new(
if let Some(mut path) = persist_doctests {
path.push(format!("{}_{}", filename.to_string().rsplit('/').next().unwrap().replace(".", "_"), line));
std::fs::create_dir_all(&path).expect("Couldn't create directory for doctest executables");
path.push(format!("{}_{}",
filename
.to_string()
.rsplit('/')
.next()
.unwrap()
.replace(".", "_"), line)
);
std::fs::create_dir_all(&path)
.expect("Couldn't create directory for doctest executables");
DirState::Perm(path)
} else {