From 55d477e14f2de238b91d70a7fead8fd19feb2d02 Mon Sep 17 00:00:00 2001 From: Roma Sokolov Date: Tue, 11 Nov 2014 12:48:26 +0300 Subject: std::os::errno returns uint now --- src/errno.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/errno.rs b/src/errno.rs index 0bdfaabf..60ccfde2 100644 --- a/src/errno.rs +++ b/src/errno.rs @@ -1,6 +1,6 @@ use std::fmt; use std::os::errno; -use std::num::from_int; +use std::num::from_uint; use libc::c_int; pub use self::consts::*; @@ -14,7 +14,7 @@ pub struct SysError { impl SysError { pub fn last() -> SysError { - match from_int(errno()) { + match from_uint(errno()) { Some(no) => SysError::new(no), _ => SysError::new(UnknownErrno) } -- cgit v1.2.3