From 727cd3bc3128482790c51e8475bcbaab45a9e3bd Mon Sep 17 00:00:00 2001 From: Vasili Pascal Date: Fri, 13 Nov 2026 10:38:02 +0200 Subject: [PATCH] style: match the format check's rustfmt output Two shapes in main.rs the runner's rustfmt formats differently: the HOME fallback closure stays broken across lines, and the closing println fits on one line. Verified with cargo fmt --check exit codes rather than output tails this time. --- src/main.rs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/main.rs b/src/main.rs index 6be7b40..65a8c8f 100644 --- a/src/main.rs +++ b/src/main.rs @@ -115,7 +115,11 @@ fn config_dir() -> Option { return Some(std::path::PathBuf::from(xdg).join("stackdog")); } } - env::var_os("HOME").map(|home| std::path::PathBuf::from(home).join(".config").join("stackdog")) + env::var_os("HOME").map(|home| { + std::path::PathBuf::from(home) + .join(".config") + .join("stackdog") + }) } /// Load `.env` from the working directory and from [`config_dir`]. The @@ -151,9 +155,7 @@ fn run_init() -> io::Result<()> { } std::fs::write(&path, include_str!("../.env.sample"))?; println!("Wrote {}.", path.display()); - println!( - "Edit it to set notification channels and log paths, then start stackdog again." - ); + println!("Edit it to set notification channels and log paths, then start stackdog again."); Ok(()) }