File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -107,7 +107,7 @@ const MAX_REFCOUNT: usize = (isize::MAX) as usize;
107
107
/// use std::thread;
108
108
///
109
109
/// fn main() {
110
- /// let numbers: Vec<_> = (0..100u32 ).collect();
110
+ /// let numbers: Vec<_> = (0..100 ).collect();
111
111
/// let shared_numbers = Arc::new(numbers);
112
112
///
113
113
/// for _ in 0..10 {
@@ -1118,7 +1118,7 @@ mod tests {
1118
1118
1119
1119
#[ test]
1120
1120
fn test_strong_count ( ) {
1121
- let a = Arc :: new ( 0u32 ) ;
1121
+ let a = Arc :: new ( 0 ) ;
1122
1122
assert ! ( Arc :: strong_count( & a) == 1 ) ;
1123
1123
let w = Arc :: downgrade ( & a) ;
1124
1124
assert ! ( Arc :: strong_count( & a) == 1 ) ;
@@ -1135,7 +1135,7 @@ mod tests {
1135
1135
1136
1136
#[ test]
1137
1137
fn test_weak_count ( ) {
1138
- let a = Arc :: new ( 0u32 ) ;
1138
+ let a = Arc :: new ( 0 ) ;
1139
1139
assert ! ( Arc :: strong_count( & a) == 1 ) ;
1140
1140
assert ! ( Arc :: weak_count( & a) == 0 ) ;
1141
1141
let w = Arc :: downgrade ( & a) ;
@@ -1161,7 +1161,7 @@ mod tests {
1161
1161
1162
1162
#[ test]
1163
1163
fn show_arc ( ) {
1164
- let a = Arc :: new ( 5u32 ) ;
1164
+ let a = Arc :: new ( 5 ) ;
1165
1165
assert_eq ! ( format!( "{:?}" , a) , "5" ) ;
1166
1166
}
1167
1167
Original file line number Diff line number Diff line change @@ -1014,7 +1014,7 @@ mod tests {
1014
1014
1015
1015
#[ test]
1016
1016
fn test_strong_count ( ) {
1017
- let a = Rc :: new ( 0u32 ) ;
1017
+ let a = Rc :: new ( 0 ) ;
1018
1018
assert ! ( Rc :: strong_count( & a) == 1 ) ;
1019
1019
let w = Rc :: downgrade ( & a) ;
1020
1020
assert ! ( Rc :: strong_count( & a) == 1 ) ;
@@ -1031,7 +1031,7 @@ mod tests {
1031
1031
1032
1032
#[ test]
1033
1033
fn test_weak_count ( ) {
1034
- let a = Rc :: new ( 0u32 ) ;
1034
+ let a = Rc :: new ( 0 ) ;
1035
1035
assert ! ( Rc :: strong_count( & a) == 1 ) ;
1036
1036
assert ! ( Rc :: weak_count( & a) == 0 ) ;
1037
1037
let w = Rc :: downgrade ( & a) ;
You can’t perform that action at this time.
0 commit comments