Skip to content

Commit 7f7ac30

Browse files
committed
Format code using 'cargo fmt'
1 parent cce91ca commit 7f7ac30

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/lib.rs

+7-2
Original file line numberDiff line numberDiff line change
@@ -680,7 +680,11 @@ impl<A: Array> SmallVec<A> {
680680
let &mut (ptr, ref mut len_ptr) = self.data.heap_mut();
681681
(ptr, len_ptr, self.capacity)
682682
} else {
683-
(self.data.inline_mut(), &mut self.capacity, Self::inline_capacity())
683+
(
684+
self.data.inline_mut(),
685+
&mut self.capacity,
686+
Self::inline_capacity(),
687+
)
684688
}
685689
}
686690
}
@@ -1083,7 +1087,8 @@ impl<A: Array> SmallVec<A> {
10831087
/// This method returns `Err(Self)` if the SmallVec is too short (and the `A` contains uninitialized elements),
10841088
/// or if the SmallVec is too long (and all the elements were spilled to the heap).
10851089
pub fn into_inner(self) -> Result<A, Self> {
1086-
if self.spilled() || self.len() != A::size() { // Note: A::size, not Self::inline_capacity
1090+
if self.spilled() || self.len() != A::size() {
1091+
// Note: A::size, not Self::inline_capacity
10871092
Err(self)
10881093
} else {
10891094
unsafe {

0 commit comments

Comments
 (0)