@@ -801,37 +801,34 @@ impl DataFlowOperator for LoanDataFlowOperator {
801801
802802impl Repr for Loan {
803803 fn repr ( & self , tcx : & ty:: ctxt ) -> String {
804- ( format ! ( "Loan_{:?}({}, {:?}, {:?}-{:?}, {})" ,
804+ format ! ( "Loan_{:?}({}, {:?}, {:?}-{:?}, {})" ,
805805 self . index,
806806 self . loan_path. repr( tcx) ,
807807 self . kind,
808808 self . gen_scope,
809809 self . kill_scope,
810- self . restricted_paths. repr( tcx) ) ) . to_string ( )
810+ self . restricted_paths. repr( tcx) )
811811 }
812812}
813813
814814impl Repr for LoanPath {
815815 fn repr ( & self , tcx : & ty:: ctxt ) -> String {
816816 match self {
817817 & LpVar ( id) => {
818- ( format ! ( "$({})" , tcx. map. node_to_str( id) ) ) . to_string ( )
818+ format ! ( "$({})" , tcx. map. node_to_str( id) )
819819 }
820820
821821 & LpUpvar ( ty:: UpvarId { var_id, closure_expr_id } ) => {
822822 let s = tcx. map . node_to_str ( var_id) ;
823- let s = format ! ( "$({} captured by id={})" , s, closure_expr_id) ;
824- s. to_string ( )
823+ format ! ( "$({} captured by id={})" , s, closure_expr_id)
825824 }
826825
827826 & LpExtend ( ref lp, _, LpDeref ( _) ) => {
828- ( format ! ( "{}.*" , lp. repr( tcx) ) ) . to_string ( )
827+ format ! ( "{}.*" , lp. repr( tcx) )
829828 }
830829
831830 & LpExtend ( ref lp, _, LpInterior ( ref interior) ) => {
832- ( format ! ( "{}.{}" ,
833- lp. repr( tcx) ,
834- interior. repr( tcx) ) ) . to_string ( )
831+ format ! ( "{}.{}" , lp. repr( tcx) , interior. repr( tcx) )
835832 }
836833 }
837834 }
0 commit comments