just/tests/tempdir.rs

7 lines
176 B
Rust
Raw Normal View History

2021-07-03 14:26:59 -07:00
pub(crate) fn tempdir() -> tempfile::TempDir {
tempfile::Builder::new()
.prefix("just-test-tempdir")
.tempdir()
.expect("failed to create temporary directory")
}