Skip to content

Commit a3f7f97

Browse files
committed
Fix tidy error.
1 parent 1318e53 commit a3f7f97

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

src/librustdoc/test.rs

+10-2
Original file line numberDiff line numberDiff line change
@@ -284,8 +284,16 @@ fn run_test(test: &str, cratename: &str, filename: &FileName, line: usize,
284284

285285
let outdir = Mutex::new(
286286
if let Some(mut path) = persist_doctests {
287-
path.push(format!("{}_{}", filename.to_string().rsplit('/').next().unwrap().replace(".", "_"), line));
288-
std::fs::create_dir_all(&path).expect("Couldn't create directory for doctest executables");
287+
path.push(format!("{}_{}",
288+
filename
289+
.to_string()
290+
.rsplit('/')
291+
.next()
292+
.unwrap()
293+
.replace(".", "_"), line)
294+
);
295+
std::fs::create_dir_all(&path)
296+
.expect("Couldn't create directory for doctest executables");
289297

290298
DirState::Perm(path)
291299
} else {

0 commit comments

Comments
 (0)