just/tests/tempdir.rs
2019-07-06 20:55:46 -07:00

8 lines
196 B
Rust

#[allow(dead_code)]
pub(crate) fn tempdir() -> tempfile::TempDir {
tempfile::Builder::new()
.prefix("just-test-tempdir")
.tempdir()
.expect("failed to create temporary directory")
}