about summary refs log tree commit diff
path: root/src/libstd/io/tempfile.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstd/io/tempfile.rs')
-rw-r--r--src/libstd/io/tempfile.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/io/tempfile.rs b/src/libstd/io/tempfile.rs
index 2faa23a6aa0..8def5d5c997 100644
--- a/src/libstd/io/tempfile.rs
+++ b/src/libstd/io/tempfile.rs
@@ -70,7 +70,7 @@ impl TempDir {
     /// temporary directory is prevented.
     pub fn unwrap(self) -> Path {
         let mut tmpdir = self;
-        tmpdir.path.take_unwrap()
+        tmpdir.path.take().unwrap()
     }
 
     /// Access the wrapped `std::path::Path` to the temporary directory.