Skip to content

Commit 93f2a54

Browse files
committed
first round of removal of integer suffixes
1 parent 6d6ae1f commit 93f2a54

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/liballoc/arc.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ const MAX_REFCOUNT: usize = (isize::MAX) as usize;
107107
/// use std::thread;
108108
///
109109
/// fn main() {
110-
/// let numbers: Vec<_> = (0..100u32).collect();
110+
/// let numbers: Vec<_> = (0..100).collect();
111111
/// let shared_numbers = Arc::new(numbers);
112112
///
113113
/// for _ in 0..10 {
@@ -1118,7 +1118,7 @@ mod tests {
11181118

11191119
#[test]
11201120
fn test_strong_count() {
1121-
let a = Arc::new(0u32);
1121+
let a = Arc::new(0);
11221122
assert!(Arc::strong_count(&a) == 1);
11231123
let w = Arc::downgrade(&a);
11241124
assert!(Arc::strong_count(&a) == 1);
@@ -1135,7 +1135,7 @@ mod tests {
11351135

11361136
#[test]
11371137
fn test_weak_count() {
1138-
let a = Arc::new(0u32);
1138+
let a = Arc::new(0);
11391139
assert!(Arc::strong_count(&a) == 1);
11401140
assert!(Arc::weak_count(&a) == 0);
11411141
let w = Arc::downgrade(&a);
@@ -1161,7 +1161,7 @@ mod tests {
11611161

11621162
#[test]
11631163
fn show_arc() {
1164-
let a = Arc::new(5u32);
1164+
let a = Arc::new(5);
11651165
assert_eq!(format!("{:?}", a), "5");
11661166
}
11671167

src/liballoc/rc.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1014,7 +1014,7 @@ mod tests {
10141014

10151015
#[test]
10161016
fn test_strong_count() {
1017-
let a = Rc::new(0u32);
1017+
let a = Rc::new(0);
10181018
assert!(Rc::strong_count(&a) == 1);
10191019
let w = Rc::downgrade(&a);
10201020
assert!(Rc::strong_count(&a) == 1);
@@ -1031,7 +1031,7 @@ mod tests {
10311031

10321032
#[test]
10331033
fn test_weak_count() {
1034-
let a = Rc::new(0u32);
1034+
let a = Rc::new(0);
10351035
assert!(Rc::strong_count(&a) == 1);
10361036
assert!(Rc::weak_count(&a) == 0);
10371037
let w = Rc::downgrade(&a);

0 commit comments

Comments
 (0)