Skip to content

Commit

Permalink
minor cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
chanced committed Sep 14, 2024
1 parent 667250e commit 76c34b9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/raw.rs
Original file line number Diff line number Diff line change
Expand Up @@ -183,8 +183,7 @@ impl<T> Vec<T> {
fn next_index(&self) -> usize {
let index = self.inflight.fetch_add(1, Ordering::Relaxed);
// the inflight counter is a `u64` to catch overflows of the vector'scapacity
let index: usize = index.try_into().expect("overflowed maximum capacity");
index
index.try_into().expect("overflowed maximum capacity")
}

fn push_to(&self, index: usize, value: T) -> usize {
Expand Down

0 comments on commit 76c34b9

Please sign in to comment.