File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -346,7 +346,7 @@ async fn monitor_output(output: OutputReceiver) {
346346
347347/// monitor_status is a helper function that will monitor the status of a given app and waits for
348348/// it to progress to a terminal state.
349- async fn monitor_status ( mut app : LocalApp ) {
349+ async fn monitor_status ( app : LocalApp ) {
350350 loop {
351351 if let Ok ( status) = app. status ( ) . await {
352352 match status {
Original file line number Diff line number Diff line change @@ -71,11 +71,18 @@ pub trait App {
7171 fn output ( & self ) -> impl Future < Output = Result < OutputReceiver , Error > > + Send ;
7272}
7373
74- #[ derive( Default ) ]
7574pub struct AppLauncher < A : App > {
7675 pub app : Option < A > ,
7776}
7877
78+ impl < A : App > std:: default:: Default for AppLauncher < A > {
79+ fn default ( ) -> Self {
80+ Self {
81+ app : None ,
82+ }
83+ }
84+ }
85+
7986impl < A : App > AppLauncher < A > {
8087 pub async fn launch (
8188 & mut self ,
Original file line number Diff line number Diff line change @@ -244,7 +244,7 @@ impl App for LocalApp {
244244 package : Some ( package) ,
245245 child : Some ( child) ,
246246 waiter : Mutex :: new ( rx) ,
247- status : None ,
247+ status : Mutex :: new ( None ) ,
248248 } )
249249 } else {
250250 log:: error!( "failed to spawn process: {}" , res. err( ) . unwrap( ) ) ;
You can’t perform that action at this time.
0 commit comments