diff options
| author | Brendan Zabarauskas <bjzaba@yahoo.com.au> | 2013-04-14 01:25:56 +1000 |
|---|---|---|
| committer | Brendan Zabarauskas <bjzaba@yahoo.com.au> | 2013-04-14 01:25:56 +1000 |
| commit | fde6995229ff1bf99fccbcfee8b55e27afdb11ec (patch) | |
| tree | df2405d4138e799038fb20f5d33c4fa462b10338 /src | |
| parent | 947ba206e10126be8a03afd58039a99430a824fd (diff) | |
| download | rust-fde6995229ff1bf99fccbcfee8b55e27afdb11ec.tar.gz rust-fde6995229ff1bf99fccbcfee8b55e27afdb11ec.zip | |
Remove trailing whitespace
Diffstat (limited to 'src')
| -rw-r--r-- | src/libcore/num/num.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/libcore/num/num.rs b/src/libcore/num/num.rs index a2570943682..d200a68c400 100644 --- a/src/libcore/num/num.rs +++ b/src/libcore/num/num.rs @@ -89,10 +89,10 @@ pub trait NumCast { macro_rules! impl_num_cast( ($T:ty, $conv:ident) => ( // FIXME #4375: This enclosing module is necessary because - // of a bug with macros expanding into multiple items + // of a bug with macros expanding into multiple items pub mod $conv { use num::NumCast; - + #[cfg(notest)] impl NumCast for $T { #[doc = "Cast `n` to a `$T`"] @@ -183,7 +183,7 @@ pub fn pow_with_uint<T:NumCast+One+Zero+Copy+Div<T,T>+Mul<T,T>>( macro_rules! test_cast_20( ($_20:expr) => ({ let _20 = $_20; - + assert!(20u == _20.to_uint()); assert!(20u8 == _20.to_u8()); assert!(20u16 == _20.to_u16()); @@ -245,11 +245,11 @@ macro_rules! test_cast_20( #[test] fn test_generic_cast() { use ops::Add; - + fn add_2<T: Add<T,T> + NumCast>(n: T) -> T { n + cast(2) } - + assert!(add_2(1u) == 3u); assert!(add_2(1u8) == 3u8); assert!(add_2(1u16) == 3u16); |
