about summary refs log tree commit diff
path: root/src/libstd/old_io
diff options
context:
space:
mode:
authorJormundir <Chaseph@gmail.com>2015-02-04 20:16:18 -0800
committerJormundir <Chaseph@gmail.com>2015-02-04 20:16:18 -0800
commite4a74616bf32068a77d76cc2591b3969ea884b9f (patch)
tree7b523a006456d948c61a27476d880ba91d1a330f /src/libstd/old_io
parentb877b77f1363c6e8bb8b9cc11c600ecb17a2fcc9 (diff)
downloadrust-e4a74616bf32068a77d76cc2591b3969ea884b9f.tar.gz
rust-e4a74616bf32068a77d76cc2591b3969ea884b9f.zip
Remove unnecessary type casts.
Diffstat (limited to 'src/libstd/old_io')
-rw-r--r--src/libstd/old_io/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/old_io/mod.rs b/src/libstd/old_io/mod.rs
index 8818211010f..4a29fa06c77 100644
--- a/src/libstd/old_io/mod.rs
+++ b/src/libstd/old_io/mod.rs
@@ -353,7 +353,7 @@ impl IoError {
     /// operating system) between the call(s) for which errors are
     /// being checked and the call of this function.
     pub fn last_error() -> IoError {
-        IoError::from_errno(os::errno() as i32, true)
+        IoError::from_errno(os::errno(), true)
     }
 }