Apply rustfmt to launcher services and app

This commit is contained in:
funman300
2026-08-18 20:51:55 +00:00
parent 35ceb084ef
commit 9900772690
2 changed files with 10 additions and 13 deletions
+9 -9
View File
@@ -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