Skip to content

Commit eaaadf2

Browse files
committed
unique
1 parent f66187e commit eaaadf2

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

ulist/src/floatings/float32.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
}

ulist/src/floatings/float64.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
}

ulist/src/non_float.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ where
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
}

0 commit comments

Comments
 (0)