Skip to content

Commit 3c51fe7

Browse files
committed
chore: Fix a few build issues
1 parent 94c8c69 commit 3c51fe7

3 files changed

Lines changed: 10 additions & 3 deletions

File tree

crates/tower-cmd/src/run.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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 {

crates/tower-runtime/src/lib.rs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff 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)]
7574
pub 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+
7986
impl<A: App> AppLauncher<A> {
8087
pub async fn launch(
8188
&mut self,

crates/tower-runtime/src/local.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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());

0 commit comments

Comments
 (0)