diff --git a/src/app.rs b/src/app.rs index 7e33a54..3804775 100644 --- a/src/app.rs +++ b/src/app.rs @@ -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.", diff --git a/src/local_services.rs b/src/local_services.rs index 6a923c6..1aff885 100644 --- a/src/local_services.rs +++ b/src/local_services.rs @@ -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