From 0e4e86f35c2c9fea9a026b9f77f3d91fafa4714b Mon Sep 17 00:00:00 2001 From: Vivian Date: Wed, 15 May 2024 21:18:44 +0200 Subject: [PATCH] fmt --- src/with_alloc/vecdeque.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/with_alloc/vecdeque.rs b/src/with_alloc/vecdeque.rs index 7f13a54..ff8112a 100644 --- a/src/with_alloc/vecdeque.rs +++ b/src/with_alloc/vecdeque.rs @@ -216,7 +216,8 @@ unsafe impl RingBuffer for GrowableAllocRingBuffer { 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);