@@ -161,7 +161,12 @@ fn make_place<T>() -> IntermediateBox<T> {
161161 p
162162 } ;
163163
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+ }
165170}
166171
167172impl < T > BoxPlace < T > for IntermediateBox < T > {
@@ -538,7 +543,10 @@ impl<T: ?Sized+Unsize<U>, U: ?Sized> CoerceUnsized<Box<U>> for Box<T> {}
538543#[ stable( feature = "box_slice_clone" , since = "1.3.0" ) ]
539544impl < T : Clone > Clone for Box < [ T ] > {
540545 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+ } ;
542550
543551 let mut target = new. data . ptr ( ) ;
544552
@@ -597,10 +605,14 @@ impl<T: ?Sized> borrow::BorrowMut<T> for Box<T> {
597605
598606#[ stable( since = "1.5.0" , feature = "smart_ptr_as_ref" ) ]
599607impl < T : ?Sized > AsRef < T > for Box < T > {
600- fn as_ref ( & self ) -> & T { & * * self }
608+ fn as_ref ( & self ) -> & T {
609+ & * * self
610+ }
601611}
602612
603613#[ stable( since = "1.5.0" , feature = "smart_ptr_as_ref" ) ]
604614impl < 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+ }
606618}
0 commit comments