diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2019-08-22 14:13:28 +0200 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2019-08-22 14:13:28 +0200 |
commit | a0c53a87a961a37d5d1a63178bb7d41463665ccc (patch) | |
tree | f030bb863311e84a7407b9f16d57f1aac986fa0e /core/src | |
parent | b68079c8e6e9edb5f0e7b0e4ce9fa52b34da4493 (diff) |
core: Use 'tempfile' instead of 'tempdir'.
- The latter crate has been deprecated and merged into the former.
Diffstat (limited to 'core/src')
-rw-r--r-- | core/src/lib.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/core/src/lib.rs b/core/src/lib.rs index 55b2ec71..1fda8453 100644 --- a/core/src/lib.rs +++ b/core/src/lib.rs @@ -19,14 +19,13 @@ /// ``` extern crate dirs; -extern crate tempdir; +extern crate tempfile; #[macro_use] extern crate failure; use std::fmt; use std::io; use std::path::{Path, PathBuf}; -use tempdir::TempDir; /// A `Context` for Sequoia. /// @@ -193,7 +192,7 @@ impl Config { // share home directories, e.g. client and server processes // share one home. if c.ephemeral && home_not_set { - let tmp = TempDir::new("sequoia")?; + let tmp = tempfile::Builder::new().prefix("sequoia").tempdir()?; c.home = tmp.into_path(); c.cleanup = true; } else { |