diff options
| author | Alfie John <alfiej@fastmail.fm> | 2015-01-25 10:58:43 +0000 |
|---|---|---|
| committer | Alfie John <alfiej@fastmail.fm> | 2015-02-01 10:34:16 +0000 |
| commit | 00a933f9ece4ef22f8651320e5f4fcfcbd37e0bf (patch) | |
| tree | 58bfb6b59488471ad7aa1dd9d9b95657f9452e8a /src/liballoc/boxed_test.rs | |
| parent | fe4340ab18abc53af40e40a6696dfbe2375238b0 (diff) | |
| download | rust-00a933f9ece4ef22f8651320e5f4fcfcbd37e0bf.tar.gz rust-00a933f9ece4ef22f8651320e5f4fcfcbd37e0bf.zip | |
More deprecating of i/u suffixes in libraries
Diffstat (limited to 'src/liballoc/boxed_test.rs')
| -rw-r--r-- | src/liballoc/boxed_test.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/liballoc/boxed_test.rs b/src/liballoc/boxed_test.rs index 4ffb94e7a61..6f6d9ab394d 100644 --- a/src/liballoc/boxed_test.rs +++ b/src/liballoc/boxed_test.rs @@ -30,11 +30,11 @@ struct Test; #[test] fn any_move() { - let a = Box::new(8u) as Box<Any>; + let a = Box::new(8us) as Box<Any>; let b = Box::new(Test) as Box<Any>; match a.downcast::<uint>() { - Ok(a) => { assert!(a == Box::new(8u)); } + Ok(a) => { assert!(a == Box::new(8us)); } Err(..) => panic!() } match b.downcast::<Test>() { @@ -42,7 +42,7 @@ fn any_move() { Err(..) => panic!() } - let a = Box::new(8u) as Box<Any>; + let a = Box::new(8) as Box<Any>; let b = Box::new(Test) as Box<Any>; assert!(a.downcast::<Box<Test>>().is_err()); @@ -51,14 +51,14 @@ fn any_move() { #[test] fn test_show() { - let a = Box::new(8u) as Box<Any>; + let a = Box::new(8) as Box<Any>; let b = Box::new(Test) as Box<Any>; let a_str = format!("{:?}", a); let b_str = format!("{:?}", b); assert_eq!(a_str, "Box<Any>"); assert_eq!(b_str, "Box<Any>"); - static EIGHT: usize = 8us; + static EIGHT: usize = 8; static TEST: Test = Test; let a = &EIGHT as &Any; let b = &TEST as &Any; |
