@@ -543,8 +543,10 @@ mod test {
543543 . collect ( ) ;
544544 assert_eq ! ( errs. len( ) , 2 , "{:?}" , ds) ;
545545
546- let expected_errors = [ "partial account prefixes can't have empty values" . to_string ( ) ,
547- "partial account suffixes can't have empty values" . to_string ( ) ] ;
546+ let expected_errors = [
547+ "partial account prefixes can't have empty values" . to_string ( ) ,
548+ "partial account suffixes can't have empty values" . to_string ( ) ,
549+ ] ;
548550 assert ! (
549551 expected_errors. iter( ) . all( |err| errs. contains( err) ) ,
550552 "{:?}" ,
@@ -882,7 +884,7 @@ mod test {
882884 . collect ( )
883885 }
884886
885- fn new_success_block ( height : u64 , receiver_id : & String ) -> codec:: Block {
887+ fn new_success_block ( height : u64 , receiver_id : & str ) -> codec:: Block {
886888 codec:: Block {
887889 header : Some ( BlockHeader {
888890 height,
@@ -894,12 +896,12 @@ mod test {
894896 receipt: Some ( crate :: codec:: Receipt {
895897 receipt: Some ( receipt:: Receipt :: Action ( ReceiptAction {
896898 output_data_receivers: vec![ DataReceiver {
897- receiver_id: receiver_id. clone ( ) ,
899+ receiver_id: receiver_id. to_string ( ) ,
898900 ..Default :: default ( )
899901 } ] ,
900902 ..Default :: default ( )
901903 } ) ) ,
902- receiver_id: receiver_id. clone ( ) ,
904+ receiver_id: receiver_id. to_string ( ) ,
903905 ..Default :: default ( )
904906 } ) ,
905907 execution_outcome: Some ( ExecutionOutcomeWithId {
@@ -949,7 +951,7 @@ mod test {
949951 }
950952 }
951953
952- fn new_receipt_with_outcome ( receiver_id : & String , block : Arc < Block > ) -> ReceiptWithOutcome {
954+ fn new_receipt_with_outcome ( receiver_id : & str , block : Arc < Block > ) -> ReceiptWithOutcome {
953955 ReceiptWithOutcome {
954956 outcome : ExecutionOutcomeWithId {
955957 outcome : Some ( ExecutionOutcome {
@@ -964,12 +966,12 @@ mod test {
964966 receipt : codec:: Receipt {
965967 receipt : Some ( receipt:: Receipt :: Action ( ReceiptAction {
966968 output_data_receivers : vec ! [ DataReceiver {
967- receiver_id: receiver_id. clone ( ) ,
969+ receiver_id: receiver_id. to_string ( ) ,
968970 ..Default :: default ( )
969971 } ] ,
970972 ..Default :: default ( )
971973 } ) ) ,
972- receiver_id : receiver_id. clone ( ) ,
974+ receiver_id : receiver_id. to_string ( ) ,
973975 ..Default :: default ( )
974976 } ,
975977 block,
0 commit comments