treefmt v2.5.0traversed 60 files emitted 37 files for processing formatted 37 files (1 changed) in 61ms M crates/ssync/src/service.rs diff --git a/crates/ssync/src/service.rs b/crates/ssync/src/service.rs index d94e902..06a3478 100644 --- a/crates/ssync/src/service.rs +++ b/crates/ssync/src/service.rs @@ -319,7 +319,10 @@ pub fn cmd_service_uninstall() -> Result<()> { PathBuf::from(SYSTEM_UNIT_PATH) }; if !unit_path.exists() { - bail!("nothing to uninstall: {} does not exist", unit_path.display()); + bail!( + "nothing to uninstall: {} does not exist", + unit_path.display() + ); } // best effort: a masked/never-enabled unit must not block removal if let Err(e) = systemctl(user_mode, &["disable", "--now", UNIT_NAME]) { @@ -372,11 +375,9 @@ mod tests { #[test] fn unit_opens_exactly_the_needed_write_paths() { let unit = render_unit(&spec(None)); - assert!( - unit.contains( - "ReadWritePaths=/home/alice/.pi/agent/sessions /home/alice/.local/share/ssync" - ) - ); + assert!(unit.contains( + "ReadWritePaths=/home/alice/.pi/agent/sessions /home/alice/.local/share/ssync" + )); } #[test] @@ -426,7 +427,10 @@ mod tests { fn missing_components_lists_only_what_create_would_add() { let base = scratch("missing"); let leaf = base.join("a/b"); - assert_eq!(missing_components(&leaf), vec![leaf.clone(), base.join("a")]); + assert_eq!( + missing_components(&leaf), + vec![leaf.clone(), base.join("a")] + ); assert!(missing_components(&base).is_empty()); std::fs::remove_dir_all(&base).unwrap(); }