File tree 1 file changed +7
-2
lines changed
1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -680,7 +680,11 @@ impl<A: Array> SmallVec<A> {
680
680
let & mut ( ptr, ref mut len_ptr) = self . data . heap_mut ( ) ;
681
681
( ptr, len_ptr, self . capacity )
682
682
} 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
+ )
684
688
}
685
689
}
686
690
}
@@ -1083,7 +1087,8 @@ impl<A: Array> SmallVec<A> {
1083
1087
/// This method returns `Err(Self)` if the SmallVec is too short (and the `A` contains uninitialized elements),
1084
1088
/// or if the SmallVec is too long (and all the elements were spilled to the heap).
1085
1089
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
1087
1092
Err ( self )
1088
1093
} else {
1089
1094
unsafe {
You can’t perform that action at this time.
0 commit comments