@@ -180,7 +180,7 @@ impl <VatId> QuestionRef<VatId> {
180180 fulfiller : oneshot:: Sender < Promise < Response < VatId > , Error > > )
181181 -> QuestionRef < VatId >
182182 {
183- QuestionRef { connection_state : state, id : id , fulfiller : Some ( fulfiller) }
183+ QuestionRef { connection_state : state, id, fulfiller : Some ( fulfiller) }
184184 }
185185 fn fulfill ( & mut self , response : Promise < Response < VatId > , Error > ) {
186186 if let Some ( fulfiller) = self . fulfiller . take ( ) {
@@ -281,7 +281,7 @@ impl Export {
281281 fn new ( client_hook : Box < dyn ClientHook > ) -> Export {
282282 Export {
283283 refcount : 1 ,
284- client_hook : client_hook ,
284+ client_hook,
285285 resolve_op : Promise :: err ( Error :: failed ( "no resolve op" . to_string ( ) ) ) ,
286286 }
287287 }
@@ -360,7 +360,7 @@ fn remote_exception_to_error(exception: exception::Reader) -> Error {
360360 ( :: capnp:: ErrorKind :: Unimplemented , reason) ,
361361 _ => ( :: capnp:: ErrorKind :: Failed , "(malformed error)" ) ,
362362 } ;
363- Error { description : format ! ( "remote exception: {}" , reason) , kind : kind }
363+ Error { description : format ! ( "remote exception: {}" , reason) , kind }
364364}
365365
366366pub struct ConnectionErrorHandler < VatId > where VatId : ' static {
@@ -369,7 +369,7 @@ pub struct ConnectionErrorHandler<VatId> where VatId: 'static {
369369
370370impl < VatId > ConnectionErrorHandler < VatId > {
371371 fn new ( weak_state : Weak < ConnectionState < VatId > > ) -> ConnectionErrorHandler < VatId > {
372- ConnectionErrorHandler { weak_state : weak_state }
372+ ConnectionErrorHandler { weak_state }
373373 }
374374}
375375
@@ -407,7 +407,7 @@ impl <VatId> ConnectionState<VatId> {
407407 -> ( TaskSet < Error > , Rc < ConnectionState < VatId > > )
408408 {
409409 let state = Rc :: new ( ConnectionState {
410- bootstrap_cap : bootstrap_cap ,
410+ bootstrap_cap,
411411 exports : RefCell :: new ( ExportTable :: new ( ) ) ,
412412 questions : RefCell :: new ( ExportTable :: new ( ) ) ,
413413 answers : RefCell :: new ( ImportTable :: new ( ) ) ,
@@ -1495,8 +1495,8 @@ impl <VatId> Disconnector<VatId> {
14951495 }
14961496 } ;
14971497 Disconnector {
1498- connection_state : connection_state ,
1499- state : state ,
1498+ connection_state,
1499+ state,
15001500 }
15011501 }
15021502 fn disconnect ( & self ) {
@@ -1564,7 +1564,7 @@ impl <VatId> Response<VatId> {
15641564 Response {
15651565 variant : Rc :: new ( ResponseVariant :: Rpc ( ResponseState {
15661566 _connection_state : connection_state,
1567- message : message ,
1567+ message,
15681568 cap_table : cap_table_array,
15691569 _question_ref : question_ref,
15701570 } ) ) ,
@@ -1638,9 +1638,9 @@ impl <VatId> Request<VatId> where VatId: 'static {
16381638
16391639 let message = connection_state. new_outgoing_message ( 100 ) ?;
16401640 Ok ( Request {
1641- connection_state : connection_state ,
1642- target : target ,
1643- message : message ,
1641+ connection_state,
1642+ target,
1643+ message,
16441644 cap_table : Vec :: new ( ) ,
16451645 } )
16461646 }
@@ -1879,7 +1879,7 @@ impl <VatId> Pipeline<VatId> {
18791879 }
18801880 None => { }
18811881 }
1882- Pipeline { state : state }
1882+ Pipeline { state }
18831883 }
18841884
18851885 fn when_resolved ( & self ) -> Promise < ( ) , Error > {
@@ -1892,14 +1892,14 @@ impl <VatId> Pipeline<VatId> {
18921892 {
18931893 let state = Rc :: new ( RefCell :: new ( PipelineState {
18941894 variant : PipelineVariant :: Waiting ( question_ref) ,
1895- connection_state : connection_state ,
1895+ connection_state,
18961896 redirect_later : None ,
18971897 resolve_self_promise : Promise :: from_future ( future:: pending ( ) ) ,
18981898 promise_clients_to_resolve : RefCell :: new ( crate :: sender_queue:: SenderQueue :: new ( ) ) ,
18991899 resolution_waiters : crate :: sender_queue:: SenderQueue :: new ( ) ,
19001900 } ) ) ;
19011901
1902- Pipeline { state : state }
1902+ Pipeline { state }
19031903 }
19041904}
19051905
@@ -1957,8 +1957,8 @@ impl Params {
19571957 -> Params
19581958 {
19591959 Params {
1960- request : request ,
1961- cap_table : cap_table ,
1960+ request,
1961+ cap_table,
19621962 }
19631963 }
19641964}
@@ -2040,9 +2040,9 @@ impl <VatId> Results<VatId> where VatId: 'static {
20402040 inner : Some ( ResultsInner {
20412041 variant : None ,
20422042 connection_state : connection_state. clone ( ) ,
2043- redirect_results : redirect_results ,
2044- answer_id : answer_id ,
2045- finish_received : finish_received ,
2043+ redirect_results,
2044+ answer_id,
2045+ finish_received,
20462046 } ) ,
20472047 results_done_fulfiller : Some ( fulfiller) ,
20482048 }
@@ -2374,7 +2374,7 @@ impl <VatId> WeakClient<VatId> where VatId: 'static {
23742374 } ;
23752375 Some ( Client {
23762376 connection_state : state,
2377- variant : variant ,
2377+ variant,
23782378 } )
23792379 }
23802380}
@@ -2431,7 +2431,7 @@ impl <VatId> ImportClient<VatId> where VatId: 'static {
24312431 -> Rc < RefCell < ImportClient < VatId > > > {
24322432 Rc :: new ( RefCell :: new ( ImportClient {
24332433 connection_state : connection_state. clone ( ) ,
2434- import_id : import_id ,
2434+ import_id,
24352435 remote_ref_count : 0 ,
24362436 } ) )
24372437 }
@@ -2461,8 +2461,8 @@ impl <VatId> PipelineClient<VatId> where VatId: 'static {
24612461 ops : Vec < PipelineOp > ) -> Rc < RefCell < PipelineClient < VatId > > > {
24622462 Rc :: new ( RefCell :: new ( PipelineClient {
24632463 connection_state : connection_state. clone ( ) ,
2464- question_ref : question_ref ,
2465- ops : ops ,
2464+ question_ref,
2465+ ops,
24662466 } ) )
24672467 }
24682468}
@@ -2501,7 +2501,7 @@ impl <VatId> PromiseClient<VatId> {
25012501 connection_state : connection_state. clone ( ) ,
25022502 is_resolved : false ,
25032503 cap : initial,
2504- import_id : import_id ,
2504+ import_id,
25052505 received_call : false ,
25062506 resolution_waiters : crate :: sender_queue:: SenderQueue :: new ( ) ,
25072507 } ) )
@@ -2616,7 +2616,7 @@ impl <VatId> Client<VatId> {
26162616 {
26172617 let client = Client {
26182618 connection_state : connection_state. clone ( ) ,
2619- variant : variant ,
2619+ variant,
26202620 } ;
26212621 let weak = client. downgrade ( ) ;
26222622
@@ -2641,7 +2641,7 @@ impl <VatId> Client<VatId> {
26412641 } ;
26422642 WeakClient {
26432643 connection_state : Rc :: downgrade ( & self . connection_state ) ,
2644- variant : variant ,
2644+ variant,
26452645 }
26462646 }
26472647
@@ -2740,7 +2740,7 @@ impl <VatId> Clone for Client<VatId> {
27402740 unimplemented ! ( )
27412741 }
27422742 } ;
2743- Client { connection_state : self . connection_state . clone ( ) , variant : variant }
2743+ Client { connection_state : self . connection_state . clone ( ) , variant}
27442744 }
27452745}
27462746
@@ -2893,7 +2893,7 @@ struct SingleCapPipeline {
28932893
28942894impl SingleCapPipeline {
28952895 fn new ( cap : Box < dyn ClientHook > ) -> SingleCapPipeline {
2896- SingleCapPipeline { cap : cap }
2896+ SingleCapPipeline { cap }
28972897 }
28982898}
28992899
0 commit comments