@@ -161,7 +161,12 @@ fn make_place<T>() -> IntermediateBox<T> {
161
161
p
162
162
} ;
163
163
164
- IntermediateBox { ptr : p, size : size, align : align, marker : marker:: PhantomData }
164
+ IntermediateBox {
165
+ ptr : p,
166
+ size : size,
167
+ align : align,
168
+ marker : marker:: PhantomData ,
169
+ }
165
170
}
166
171
167
172
impl < T > BoxPlace < T > for IntermediateBox < T > {
@@ -538,7 +543,10 @@ impl<T: ?Sized+Unsize<U>, U: ?Sized> CoerceUnsized<Box<U>> for Box<T> {}
538
543
#[ stable( feature = "box_slice_clone" , since = "1.3.0" ) ]
539
544
impl < T : Clone > Clone for Box < [ T ] > {
540
545
fn clone ( & self ) -> Self {
541
- let mut new = BoxBuilder { data : RawVec :: with_capacity ( self . len ( ) ) , len : 0 } ;
546
+ let mut new = BoxBuilder {
547
+ data : RawVec :: with_capacity ( self . len ( ) ) ,
548
+ len : 0 ,
549
+ } ;
542
550
543
551
let mut target = new. data . ptr ( ) ;
544
552
@@ -597,10 +605,14 @@ impl<T: ?Sized> borrow::BorrowMut<T> for Box<T> {
597
605
598
606
#[ stable( since = "1.5.0" , feature = "smart_ptr_as_ref" ) ]
599
607
impl < T : ?Sized > AsRef < T > for Box < T > {
600
- fn as_ref ( & self ) -> & T { & * * self }
608
+ fn as_ref ( & self ) -> & T {
609
+ & * * self
610
+ }
601
611
}
602
612
603
613
#[ stable( since = "1.5.0" , feature = "smart_ptr_as_ref" ) ]
604
614
impl < T : ?Sized > AsMut < T > for Box < T > {
605
- fn as_mut ( & mut self ) -> & mut T { & mut * * self }
615
+ fn as_mut ( & mut self ) -> & mut T {
616
+ & mut * * self
617
+ }
606
618
}
0 commit comments