about summary refs log tree commit diff
path: root/src/libstd/sys
diff options
context:
space:
mode:
authorBrendan Zabarauskas <bjzaba@yahoo.com.au>2014-11-13 00:02:42 +1100
committerBrendan Zabarauskas <bjzaba@yahoo.com.au>2014-11-13 03:46:03 +1100
commitde938b6ca1a2b6b6df65d5935c765a7c25fbce84 (patch)
treef8b7c283989f7ac9a7694989cfd3a4be71e74dee /src/libstd/sys
parente965ba85ca689ad77f63b7f0af9d7e337dcb4825 (diff)
downloadrust-de938b6ca1a2b6b6df65d5935c765a7c25fbce84.tar.gz
rust-de938b6ca1a2b6b6df65d5935c765a7c25fbce84.zip
Remove Signed trait and add SignedInt trait
The methods have been moved into Float and SignedInt
Diffstat (limited to 'src/libstd/sys')
-rw-r--r--src/libstd/sys/unix/mod.rs4
1 files changed, 2 insertions, 2 deletions
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<T: Signed + Int> (f: || -> T) -> T {
+pub fn retry<T: SignedInt> (f: || -> T) -> T {
     let one: T = Int::one();
     loop {
         let n = f();