about summary refs log tree commit diff
path: root/src/librustc_back/fs.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/librustc_back/fs.rs')
-rw-r--r--src/librustc_back/fs.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/librustc_back/fs.rs b/src/librustc_back/fs.rs
index 6d8891dd4fe..214cec4e292 100644
--- a/src/librustc_back/fs.rs
+++ b/src/librustc_back/fs.rs
@@ -20,9 +20,7 @@ pub fn realpath(original: &Path) -> io::Result<PathBuf> {
     let old = old_path::Path::new(original.to_str().unwrap());
     match old_realpath(&old) {
         Ok(p) => Ok(PathBuf::from(p.as_str().unwrap())),
-        Err(e) => Err(io::Error::new(io::ErrorKind::Other,
-                                     "realpath error",
-                                     Some(e.to_string())))
+        Err(e) => Err(io::Error::new(io::ErrorKind::Other, e))
     }
 }