Apply rustfmt to launcher services and app
This commit is contained in:
+1
-4
@@ -839,10 +839,7 @@ impl LauncherApp {
|
||||
self.restart_queue.push(service);
|
||||
}
|
||||
if ui
|
||||
.add_enabled(
|
||||
runtime.started_by_launcher,
|
||||
egui::Button::new("Stop"),
|
||||
)
|
||||
.add_enabled(runtime.started_by_launcher, egui::Button::new("Stop"))
|
||||
.on_disabled_hover_text(
|
||||
"Started outside this launcher — stop it where it \
|
||||
was started.",
|
||||
|
||||
@@ -80,7 +80,10 @@ impl Service {
|
||||
/// instead of two.
|
||||
fn resolve_binary(service: Service) -> PathBuf {
|
||||
let name = service.binary();
|
||||
if let Some(dir) = std::env::current_exe().ok().and_then(|p| p.parent().map(Path::to_path_buf)) {
|
||||
if let Some(dir) = std::env::current_exe()
|
||||
.ok()
|
||||
.and_then(|p| p.parent().map(Path::to_path_buf))
|
||||
{
|
||||
let sibling = dir.join(name);
|
||||
if sibling.is_file() {
|
||||
return sibling;
|
||||
@@ -535,14 +538,11 @@ pub fn spawn(
|
||||
log.lock().push(format!(
|
||||
"[launcher] starting {label}: {}{}",
|
||||
parts.program,
|
||||
parts
|
||||
.args
|
||||
.iter()
|
||||
.fold(String::new(), |mut acc, a| {
|
||||
acc.push(' ');
|
||||
acc.push_str(a);
|
||||
acc
|
||||
}),
|
||||
parts.args.iter().fold(String::new(), |mut acc, a| {
|
||||
acc.push(' ');
|
||||
acc.push_str(a);
|
||||
acc
|
||||
}),
|
||||
));
|
||||
|
||||
let mut child = cmd
|
||||
|
||||
Reference in New Issue
Block a user