Skip to content

Commit 8a58bf5

Browse files
oech3cakebaker
authored andcommitted
shuf: delete useless cast
1 parent 9ac174b commit 8a58bf5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/uu/shuf/src/nonrepeating_iterator.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ impl Iterator for NonrepeatingIterator<'_> {
104104
Values::Full(_) => (),
105105
Values::Sparse(range, _) if range.is_empty() => return None,
106106
Values::Sparse(range, items) => {
107-
if items.len() as u64 >= items.capacity() as u64 {
107+
if items.len() >= items.capacity() {
108108
self.values = Values::Full(hashmap_to_vec(range.clone(), items));
109109
}
110110
}

0 commit comments

Comments
 (0)