File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -257,7 +257,7 @@ impl FloatList32 {
257257 vec. push ( self . na_value ( ) ) ;
258258 }
259259 // Construct List.
260- let mut hset = HashSet :: new ( ) ;
260+ let mut hset = HashSet :: with_capacity ( 1 ) ;
261261 if self . count_na ( ) > 0 {
262262 hset. insert ( vec. len ( ) - 1 ) ;
263263 }
Original file line number Diff line number Diff line change @@ -257,7 +257,7 @@ impl FloatList64 {
257257 vec. push ( self . na_value ( ) ) ;
258258 }
259259 // Construct List.
260- let mut hset = HashSet :: new ( ) ;
260+ let mut hset = HashSet :: with_capacity ( 1 ) ;
261261 if self . count_na ( ) > 0 {
262262 hset. insert ( vec. len ( ) - 1 ) ;
263263 }
Original file line number Diff line number Diff line change 6565 }
6666 } ;
6767 // Construct List.
68- let mut hset = HashSet :: new ( ) ;
68+ let mut hset = HashSet :: with_capacity ( 1 ) ;
6969 if self . count_na ( ) > 0 {
7070 hset. insert ( vec_dedup. len ( ) - 1 ) ;
7171 }
You can’t perform that action at this time.
0 commit comments