@@ -80,7 +80,7 @@ impl QuickjsRuntimeFacadeInner {
8080 pub fn add_rt_task_to_event_loop < C , R : Send + ' static > (
8181 & self ,
8282 consumer : C ,
83- ) -> impl Future < Output = R >
83+ ) -> impl Future < Output = R >
8484 where
8585 C : FnOnce ( & QuickJsRuntimeAdapter ) -> R + Send + ' static ,
8686 {
@@ -125,7 +125,7 @@ impl QuickjsRuntimeFacadeInner {
125125 } )
126126 }
127127
128- pub fn add_task_to_event_loop < C , R : Send + ' static > ( & self , task : C ) -> impl Future < Output = R >
128+ pub fn add_task_to_event_loop < C , R : Send + ' static > ( & self , task : C ) -> impl Future < Output = R >
129129 where
130130 C : FnOnce ( ) -> R + Send + ' static ,
131131 {
@@ -316,7 +316,7 @@ impl QuickJsRuntimeFacade {
316316 self . inner . exe_task_in_event_loop ( task)
317317 }
318318
319- pub fn add_task_to_event_loop < C , R : Send + ' static > ( & self , task : C ) -> impl Future < Output = R >
319+ pub fn add_task_to_event_loop < C , R : Send + ' static > ( & self , task : C ) -> impl Future < Output = R >
320320 where
321321 C : FnOnce ( ) -> R + Send + ' static ,
322322 {
@@ -337,7 +337,7 @@ impl QuickJsRuntimeFacade {
337337 pub fn add_rt_task_to_event_loop < C , R : Send + ' static > (
338338 & self ,
339339 task : C ,
340- ) -> impl Future < Output = R >
340+ ) -> impl Future < Output = R >
341341 where
342342 C : FnOnce ( & QuickJsRuntimeAdapter ) -> R + Send + ' static ,
343343 {
@@ -426,8 +426,8 @@ impl QuickJsRuntimeFacade {
426426 ) -> Result < ( ) , JsError >
427427 where
428428 F : Fn ( & QuickJsRealmAdapter , Vec < JsValueFacade > ) -> Result < JsValueFacade , JsError >
429- + Send
430- + ' static ,
429+ + Send
430+ + ' static ,
431431 {
432432 let name = name. to_string ( ) ;
433433
@@ -483,9 +483,9 @@ impl QuickJsRuntimeFacade {
483483 }
484484
485485 /// add an async task the the "helper" thread pool
486- pub fn add_helper_task_async < R : Send + ' static , T : Future < Output = R > + Send + ' static > (
486+ pub fn add_helper_task_async < R : Send + ' static , T : Future < Output = R > + Send + ' static > (
487487 task : T ,
488- ) -> impl Future < Output = Result < R , JoinError > > {
488+ ) -> impl Future < Output = Result < R , JoinError > > {
489489 log:: trace!( "adding an async helper task" ) ;
490490 HELPER_TASKS . add_task_async ( task)
491491 }
@@ -647,7 +647,7 @@ impl QuickJsRuntimeFacade {
647647 > (
648648 & self ,
649649 consumer : C ,
650- ) -> Pin < Box < dyn Future < Output = R > + Send > > {
650+ ) -> Pin < Box < dyn Future < Output = R > + Send > > {
651651 Box :: pin ( self . add_rt_task_to_event_loop ( consumer) )
652652 }
653653
@@ -678,7 +678,7 @@ impl QuickJsRuntimeFacade {
678678 & self ,
679679 realm_name : Option < & str > ,
680680 consumer : C ,
681- ) -> Pin < Box < dyn Future < Output = R > > > {
681+ ) -> Pin < Box < dyn Future < Output = R > > > {
682682 let realm_name = realm_name. map ( |s| s. to_string ( ) ) ;
683683 Box :: pin ( self . add_task_to_event_loop ( || loop_realm_func ( realm_name, consumer) ) )
684684 }
@@ -713,7 +713,7 @@ impl QuickJsRuntimeFacade {
713713 & self ,
714714 realm_name : Option < & str > ,
715715 script : Script ,
716- ) -> Pin < Box < dyn Future < Output = Result < JsValueFacade , JsError > > > > {
716+ ) -> Pin < Box < dyn Future < Output = Result < JsValueFacade , JsError > > > > {
717717 self . loop_realm ( realm_name, |_rt, realm| {
718718 let res = realm. eval ( script) ;
719719 match res {
@@ -786,7 +786,7 @@ impl QuickJsRuntimeFacade {
786786 & self ,
787787 realm_name : Option < & str > ,
788788 script : Script ,
789- ) -> Pin < Box < dyn Future < Output = Result < JsValueFacade , JsError > > > > {
789+ ) -> Pin < Box < dyn Future < Output = Result < JsValueFacade , JsError > > > > {
790790 self . loop_realm ( realm_name, |_rt, realm| {
791791 let res = realm. eval_module ( script) ?;
792792 realm. to_js_value_facade ( & res)
@@ -902,7 +902,7 @@ impl QuickJsRuntimeFacade {
902902 namespace : & [ & str ] ,
903903 method_name : & str ,
904904 args : Vec < JsValueFacade > ,
905- ) -> Pin < Box < dyn Future < Output = Result < JsValueFacade , JsError > > > > {
905+ ) -> Pin < Box < dyn Future < Output = Result < JsValueFacade , JsError > > > > {
906906 let movable_namespace: Vec < String > = namespace. iter ( ) . map ( |s| s. to_string ( ) ) . collect ( ) ;
907907 let movable_method_name = method_name. to_string ( ) ;
908908
@@ -1352,7 +1352,7 @@ pub mod abstraction_tests {
13521352 . to_js_value_facade ( & value_adapter)
13531353 . expect ( "conversion failed" )
13541354 } )
1355- . await
1355+ . await
13561356 }
13571357
13581358 #[ test]
@@ -1426,8 +1426,8 @@ pub mod abstraction_tests {
14261426 "# ,
14271427 ) ,
14281428 )
1429- . await
1430- . expect ( "script failed" ) ;
1429+ . await
1430+ . expect ( "script failed" ) ;
14311431
14321432 // create a user obj
14331433 let test_user_input = User {
@@ -1479,8 +1479,8 @@ pub mod abstraction_tests {
14791479 "# ,
14801480 ) ,
14811481 )
1482- . await
1483- . expect ( "script failed" ) ;
1482+ . await
1483+ . expect ( "script failed" ) ;
14841484
14851485 // create a user obj
14861486 let test_user_input = User {
@@ -1518,7 +1518,7 @@ pub mod abstraction_tests {
15181518 rt. add_rt_task_to_event_loop ( |rt| {
15191519 println ! ( "ctx list: [{}]" , rt. list_contexts( ) . join( "," ) . as_str( ) ) ;
15201520 } )
1521- . await ;
1521+ . await ;
15221522
15231523 for x in 0 ..10240 {
15241524 let rid = format ! ( "x_{x}" ) ;
@@ -1530,7 +1530,7 @@ pub mod abstraction_tests {
15301530 rt. add_rt_task_to_event_loop ( |rt| {
15311531 println ! ( "ctx list: [{}]" , rt. list_contexts( ) . join( "," ) . as_str( ) ) ;
15321532 } )
1533- . await ;
1533+ . await ;
15341534
15351535 for x in 0 ..8 {
15361536 let rid = format ! ( "x_{x}" ) ;
@@ -1542,7 +1542,7 @@ pub mod abstraction_tests {
15421542 rt. add_rt_task_to_event_loop ( |rt| {
15431543 println ! ( "ctx list: [{}]" , rt. list_contexts( ) . join( "," ) . as_str( ) ) ;
15441544 } )
1545- . await ;
1545+ . await ;
15461546
15471547 Ok ( ( ) )
15481548 }
0 commit comments