From b3ca1a7dd13b1ffbd768a5677b8d12346f6bf07c Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Thu, 10 May 2018 11:45:33 +0200 Subject: [PATCH] deps: update tempfile to 3 Signed-off-by: Igor Gnatenko --- src/unistd.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/unistd.rs b/src/unistd.rs index 8022aa0..756a4d6 100644 --- a/src/unistd.rs +++ b/src/unistd.rs @@ -421,15 +421,15 @@ pub fn fchdir(dirfd: RawFd) -> Result<()> { /// # Example /// /// ```rust -/// extern crate tempdir; +/// extern crate tempfile; /// extern crate nix; /// /// use nix::unistd; /// use nix::sys::stat; -/// use tempdir::TempDir; +/// use tempfile::TempDir; /// /// fn main() { -/// let tmp_dir1 = TempDir::new("test_mkdir").unwrap(); +/// let tmp_dir1 = TempDir::new().unwrap(); /// let tmp_dir2 = tmp_dir1.path().join("new_dir"); /// /// // create new directory and give read, write and execute rights to the owner @@ -464,15 +464,15 @@ pub fn mkdir(path: &P, mode: Mode) -> Result<()> { /// # Example /// /// ```rust -/// extern crate tempdir; +/// extern crate tempfile; /// extern crate nix; /// /// use nix::unistd; /// use nix::sys::stat; -/// use tempdir::TempDir; +/// use tempfile::TempDir; /// /// fn main() { -/// let tmp_dir = TempDir::new("test_fifo").unwrap(); +/// let tmp_dir = TempDir::new().unwrap(); /// let fifo_path = tmp_dir.path().join("foo.pipe"); /// /// // create new fifo and give read, write and execute rights to the owner -- 2.17.0