chore: format

This commit is contained in:
Gabriele Musco 2023-10-08 00:07:58 +02:00
parent 5778b9e979
commit 244a2cfff1
No known key found for this signature in database
GPG key ID: 1068D795C80E51DE
3 changed files with 17 additions and 9 deletions

View file

@ -180,7 +180,7 @@ impl App {
JobWorkerOut::Log(rows) => Msg::OnServiceLog(rows),
JobWorkerOut::Exit(code) => Msg::OnServiceExit(code),
},
debug
debug,
);
worker.start();
self.xrservice_worker = Some(worker);
@ -396,9 +396,7 @@ impl SimpleComponent for App {
self.shutdown_xrservice();
}
},
Msg::StartWithDebug => {
self.start_xrservice(sender, true)
}
Msg::StartWithDebug => self.start_xrservice(sender, true),
Msg::RestartXRService => match &mut self.xrservice_worker {
None => {
self.start_xrservice(sender, false);
@ -443,8 +441,12 @@ impl SimpleComponent for App {
jobs.push_back(get_build_mercury_job(&profile));
}
jobs.extend(match profile.xrservice_type {
XRServiceType::Monado => get_build_monado_jobs(&profile, clean_build, debug_build),
XRServiceType::Wivrn => get_build_wivrn_jobs(&profile, clean_build, debug_build),
XRServiceType::Monado => {
get_build_monado_jobs(&profile, clean_build, debug_build)
}
XRServiceType::Wivrn => {
get_build_wivrn_jobs(&profile, clean_build, debug_build)
}
});
// no listed deps for opencomp
}

View file

@ -176,8 +176,14 @@ impl InternalJobWorker {
"gdb -batch -ex run -ex bt --args", LAUNCH_OPTS_CMD_PLACEHOLDER, launch_opts
)
}
} else {String::default()};
launch_opts = if debug { debug_launch_opts.as_str() } else { launch_opts };
} else {
String::default()
};
launch_opts = if debug {
debug_launch_opts.as_str()
} else {
launch_opts
};
let (command, args) = match launch_opts.is_empty() {
false => (
"sh".into(),

View file

@ -48,7 +48,7 @@ impl JobWorker {
prof: &Profile,
sender: &Sender<X>,
transform: F,
debug: bool
debug: bool,
) -> Self {
let state = Arc::new(Mutex::new(JobWorkerState::default()));
Self {