Remove unnecessary type casts.

This commit is contained in:
Jormundir
2015-02-04 20:16:18 -08:00
parent b877b77f13
commit e4a74616bf
2 changed files with 3 additions and 3 deletions

View File

@@ -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)
}
}