File tree Expand file tree Collapse file tree 4 files changed +6
-10
lines changed Expand file tree Collapse file tree 4 files changed +6
-10
lines changed Original file line number Diff line number Diff line change 8
8
//
9
9
// Make me compile and pass the tests!
10
10
//
11
- // Execute the command `rustlings hint collections3 ` if you need
11
+ // Execute the command `rustlings hint hashmap1 ` if you need
12
12
// hints.
13
13
14
14
// I AM NOT DONE
@@ -39,8 +39,6 @@ mod tests {
39
39
#[ test]
40
40
fn at_least_five_fruits ( ) {
41
41
let basket = fruit_basket ( ) ;
42
- assert ! ( basket
43
- . values( )
44
- . sum:: <u32 >( ) >= 5 ) ;
42
+ assert ! ( basket. values( ) . sum:: <u32 >( ) >= 5 ) ;
45
43
}
46
44
}
Original file line number Diff line number Diff line change 9
9
//
10
10
// Make me pass the tests!
11
11
//
12
- // Execute the command `rustlings hint collections4 ` if you need
12
+ // Execute the command `rustlings hint hashmap2 ` if you need
13
13
// hints.
14
14
15
15
// I AM NOT DONE
@@ -75,9 +75,7 @@ mod tests {
75
75
fn greater_than_eleven_fruits ( ) {
76
76
let mut basket = get_fruit_basket ( ) ;
77
77
fruit_basket ( & mut basket) ;
78
- let count = basket
79
- . values ( )
80
- . sum :: < u32 > ( ) ;
78
+ let count = basket. values ( ) . sum :: < u32 > ( ) ;
81
79
assert ! ( count > 11 ) ;
82
80
}
83
81
}
Original file line number Diff line number Diff line change 2
2
// Your task is to create a `Vec` which holds the exact same elements
3
3
// as in the array `a`.
4
4
// Make me compile and pass the test!
5
- // Execute the command `rustlings hint collections1 ` if you need hints.
5
+ // Execute the command `rustlings hint vec1 ` if you need hints.
6
6
7
7
// I AM NOT DONE
8
8
Original file line number Diff line number Diff line change 4
4
//
5
5
// Make me pass the test!
6
6
//
7
- // Execute the command `rustlings hint collections2 ` if you need
7
+ // Execute the command `rustlings hint vec2 ` if you need
8
8
// hints.
9
9
10
10
// I AM NOT DONE
You can’t perform that action at this time.
0 commit comments