Sha256: cb15aa9cbd6186d08ffcf8e055bea0045a72e5f074265e1cf9f4f0c39d82ffc8
Contents?: true
Size: 376 Bytes
Versions: 39
Compression:
Stored size: 376 Bytes
Contents
use cap_tempfile::{ambient_authority, tempdir}; pub use cap_tempfile::TempDir; #[allow(unused)] pub fn tmpdir() -> TempDir { // It's ok to wrap this in an unsafe block, rather than an unsafe function, // because this function is only used by tests. unsafe { tempdir(ambient_authority()) } .expect("expected to be able to create a temporary directory") }
Version data entries
39 entries across 39 versions & 1 rubygems