From de938b6ca1a2b6b6df65d5935c765a7c25fbce84 Mon Sep 17 00:00:00 2001 From: Brendan Zabarauskas Date: Thu, 13 Nov 2014 00:02:42 +1100 Subject: Remove Signed trait and add SignedInt trait The methods have been moved into Float and SignedInt --- src/libstd/sys/unix/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/libstd/sys') diff --git a/src/libstd/sys/unix/mod.rs b/src/libstd/sys/unix/mod.rs index 969570d385c..4db9e8a9df8 100644 --- a/src/libstd/sys/unix/mod.rs +++ b/src/libstd/sys/unix/mod.rs @@ -18,7 +18,7 @@ extern crate libc; use num; -use num::Int; +use num::{Int, SignedInt}; use prelude::*; use io::{mod, IoResult, IoError}; use sys_common::mkerr_libc; @@ -117,7 +117,7 @@ pub fn decode_error_detailed(errno: i32) -> IoError { } #[inline] -pub fn retry (f: || -> T) -> T { +pub fn retry (f: || -> T) -> T { let one: T = Int::one(); loop { let n = f(); -- cgit 1.4.1-3-g733a5