From 7f7ac30ef038be60f994d3f9ce87dd56cf41c8ca Mon Sep 17 00:00:00 2001 From: Atul Bhosale Date: Sat, 11 Jul 2020 22:22:56 +0530 Subject: [PATCH] Format code using 'cargo fmt' --- src/lib.rs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index cf79ad8..c8eb604 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -680,7 +680,11 @@ impl SmallVec { let &mut (ptr, ref mut len_ptr) = self.data.heap_mut(); (ptr, len_ptr, self.capacity) } else { - (self.data.inline_mut(), &mut self.capacity, Self::inline_capacity()) + ( + self.data.inline_mut(), + &mut self.capacity, + Self::inline_capacity(), + ) } } } @@ -1083,7 +1087,8 @@ impl SmallVec { /// This method returns `Err(Self)` if the SmallVec is too short (and the `A` contains uninitialized elements), /// or if the SmallVec is too long (and all the elements were spilled to the heap). pub fn into_inner(self) -> Result { - if self.spilled() || self.len() != A::size() { // Note: A::size, not Self::inline_capacity + if self.spilled() || self.len() != A::size() { + // Note: A::size, not Self::inline_capacity Err(self) } else { unsafe {