Fix tidy error.
This commit is contained in:
parent
1318e53ea8
commit
a3f7f97205
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user