/// Creates a new, temporary directory, and returns it as `TempDir`. The
/// temporary directory exists as long as the returned `TempDir` does.
Creates a new, temporary directory, and returns it as `TempDir`. The
temporary directory exists as long as the returned `TempDir` does.
Creates a new temporary directory and returns it as ` TempDir ` . The temporary directory exists as long as the returned ` TempDir ` does .
pub fn temp_dir() -> TempDir {
    tempfile::Builder::new()
        .prefix("ic_crypto_")
        .tempdir()
        .expect("unable to create temp dir")
}
pub fn temp_dir ( ) -> TempDir { tempfile :: Builder :: new ( ) . prefix ( " " ) . tempdir ( ) . expect ( " " ) }
Creates a new, temporary directory, and returns it as `TempDir`.
Creates a new temporary directory and returns it as ` TempDir ` .