just/tests/tempdir.rs

8 lines
196 B
Rust
Raw Normal View History

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