We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4ed20d2 commit 0e4e86fCopy full SHA for 0e4e86f
src/with_alloc/vecdeque.rs
@@ -216,7 +216,8 @@ unsafe impl<T> RingBuffer<T> for GrowableAllocRingBuffer<T> {
216
if self.is_empty() {
217
None
218
} else if index >= 0 {
219
- self.0.get(crate::mask_modulo(self.0.len(), index.unsigned_abs()))
+ self.0
220
+ .get(crate::mask_modulo(self.0.len(), index.unsigned_abs()))
221
} else {
222
let positive_index = index.unsigned_abs() - 1;
223
let masked = crate::mask_modulo(self.0.len(), positive_index);
0 commit comments