@@ -378,7 +378,7 @@ fn remote_exception_to_error(exception: exception::Reader) -> Error {
378378 _ => ( :: capnp:: ErrorKind :: Failed , "(malformed error)" ) ,
379379 } ;
380380 Error {
381- description : format ! ( "remote exception: {}" , reason ) ,
381+ description : format ! ( "remote exception: {reason}" ) ,
382382 kind,
383383 }
384384}
@@ -783,15 +783,13 @@ impl<VatId> ConnectionState<VatId> {
783783 match answers_slots. get_mut ( & answer_id) {
784784 None => {
785785 return Err ( Error :: failed ( format ! (
786- "Invalid question ID {} in Finish message." ,
787- answer_id
786+ "Invalid question ID {answer_id} in Finish message."
788787 ) ) ) ;
789788 }
790789 Some ( answer) => {
791790 if !answer. active {
792791 return Err ( Error :: failed ( format ! (
793- "'Finish' for invalid question ID {}." ,
794- answer_id
792+ "'Finish' for invalid question ID {answer_id}."
795793 ) ) ) ;
796794 }
797795 answer. received_finish . set ( true ) ;
@@ -939,8 +937,7 @@ impl<VatId> ConnectionState<VatId> {
939937 . contains_key ( & question_id)
940938 {
941939 return Err ( Error :: failed ( format ! (
942- "Received a new call on in-use question id {}" ,
943- question_id
940+ "Received a new call on in-use question id {question_id}"
944941 ) ) ) ;
945942 }
946943
@@ -994,7 +991,7 @@ impl<VatId> ConnectionState<VatId> {
994991 if let Some ( f) = redirected_results_done_fulfiller {
995992 match v {
996993 Ok ( r) => drop ( f. send ( Ok ( Response :: redirected ( r. clone ( ) ) ) ) ) ,
997- Err ( e) => drop ( f. send ( Err ( e. clone ( ) ) ) ) ,
994+ Err ( e) => drop ( f. send ( Err ( e) ) ) ,
998995 }
999996 }
1000997 Promise :: ok ( ( ) )
@@ -1095,8 +1092,7 @@ impl<VatId> ConnectionState<VatId> {
10951092 }
10961093 None => {
10971094 return Err ( Error :: failed ( format ! (
1098- "Invalid question ID in Return message: {}" ,
1099- question_id
1095+ "Invalid question ID in Return message: {question_id}"
11001096 ) ) ) ;
11011097 }
11021098 }
@@ -1146,11 +1142,13 @@ impl<VatId> ConnectionState<VatId> {
11461142 Ok ( message:: Disembargo ( disembargo) ) => {
11471143 Self :: handle_disembargo ( & connection_state, disembargo?) ?
11481144 }
1149- Ok ( message:: Provide ( _) )
1150- | Ok ( message:: Accept ( _) )
1151- | Ok ( message:: Join ( _) )
1152- | Ok ( message:: ObsoleteSave ( _) )
1153- | Ok ( message:: ObsoleteDelete ( _) )
1145+ Ok (
1146+ message:: Provide ( _)
1147+ | message:: Accept ( _)
1148+ | message:: Join ( _)
1149+ | message:: ObsoleteSave ( _)
1150+ | message:: ObsoleteDelete ( _) ,
1151+ )
11541152 | Err ( :: capnp:: NotInSchema ( _) ) => {
11551153 Self :: send_unimplemented ( & connection_state, & message) ?;
11561154 }
@@ -1225,7 +1223,7 @@ impl<VatId> ConnectionState<VatId> {
12251223 match target. which ( ) ? {
12261224 message_target:: ImportedCap ( export_id) => {
12271225 match self . exports . borrow ( ) . slots . get ( export_id as usize ) {
1228- Some ( & Some ( ref exp) ) => Ok ( exp. client_hook . clone ( ) ) ,
1226+ Some ( Some ( exp) ) => Ok ( exp. client_hook . clone ( ) ) ,
12291227 _ => Err ( Error :: failed (
12301228 "Message target is not a current export ID." . to_string ( ) ,
12311229 ) ) ,
0 commit comments