Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
NULLx76 committed May 15, 2024
1 parent 4ed20d2 commit 0e4e86f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/with_alloc/vecdeque.rs
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,8 @@ unsafe impl<T> RingBuffer<T> for GrowableAllocRingBuffer<T> {
if self.is_empty() {
None
} else if index >= 0 {
self.0.get(crate::mask_modulo(self.0.len(), index.unsigned_abs()))
self.0
.get(crate::mask_modulo(self.0.len(), index.unsigned_abs()))
} else {
let positive_index = index.unsigned_abs() - 1;
let masked = crate::mask_modulo(self.0.len(), positive_index);
Expand Down

1 comment on commit 0e4e86f

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.