@@ -25,7 +25,7 @@ fn count_for(map: &HashMap<String, Progress>, value: Progress) -> usize {
2525
2626fn count_iterator ( map : & HashMap < String , Progress > , value : Progress ) -> usize {
2727 // `map` is a hash map with `String` keys and `Progress` values.
28- // map = { "variables1": Complete, "from_str ": None, … }
28+ // map = { "variables1": Complete, "conversions3 ": None, … }
2929 map. values ( ) . filter ( |val| * * val == value) . count ( )
3030}
3131
@@ -39,7 +39,7 @@ fn count_collection_for(collection: &[HashMap<String, Progress>], value: Progres
3939
4040fn count_collection_iterator ( collection : & [ HashMap < String , Progress > ] , value : Progress ) -> usize {
4141 // `collection` is a slice of hash maps.
42- // collection = [{ "variables1": Complete, "from_str ": None, … },
42+ // collection = [{ "variables1": Complete, "conversions3 ": None, … },
4343 // { "variables2": Complete, … }, … ]
4444 collection
4545 . iter ( )
@@ -55,7 +55,7 @@ fn count_collection_iterator_flat(
5555 value : Progress ,
5656) -> usize {
5757 // `collection` is a slice of hash maps.
58- // collection = [{ "variables1": Complete, "from_str ": None, … },
58+ // collection = [{ "variables1": Complete, "conversions3 ": None, … },
5959 // { "variables2": Complete, … }, … ]
6060 collection
6161 . iter ( )
@@ -77,10 +77,10 @@ mod tests {
7777 let mut map = HashMap :: new ( ) ;
7878 map. insert ( String :: from ( "variables1" ) , Complete ) ;
7979 map. insert ( String :: from ( "functions1" ) , Complete ) ;
80- map. insert ( String :: from ( "hashmap1 " ) , Complete ) ;
81- map. insert ( String :: from ( "arc1 " ) , Some ) ;
82- map. insert ( String :: from ( "as_ref_mut " ) , None ) ;
83- map. insert ( String :: from ( "from_str " ) , None ) ;
80+ map. insert ( String :: from ( "hashmaps1 " ) , Complete ) ;
81+ map. insert ( String :: from ( "smart_pointers3 " ) , Some ) ;
82+ map. insert ( String :: from ( "conversions5 " ) , None ) ;
83+ map. insert ( String :: from ( "conversions3 " ) , None ) ;
8484
8585 map
8686 }
@@ -92,8 +92,8 @@ mod tests {
9292 other. insert ( String :: from ( "variables2" ) , Complete ) ;
9393 other. insert ( String :: from ( "functions2" ) , Complete ) ;
9494 other. insert ( String :: from ( "if1" ) , Complete ) ;
95- other. insert ( String :: from ( "from_into " ) , None ) ;
96- other. insert ( String :: from ( "try_from_into " ) , None ) ;
95+ other. insert ( String :: from ( "conversions2 " ) , None ) ;
96+ other. insert ( String :: from ( "conversions4 " ) , None ) ;
9797
9898 vec ! [ map, other]
9999 }
0 commit comments