nixbot

builds

failed treefmt-check x86_64-linux.formatting · build #33 · raw

1treefmt v2.5.0traversed 60 files2emitted 37 files for processing3formatted 37 files (1 changed) in 61ms4 M crates/ssync/src/service.rs5diff --git a/crates/ssync/src/service.rs b/crates/ssync/src/service.rs6index d94e902..06a3478 1006447--- a/crates/ssync/src/service.rs8+++ b/crates/ssync/src/service.rs9@@ -319,7 +319,10 @@ pub fn cmd_service_uninstall() -> Result<()> {10 PathBuf::from(SYSTEM_UNIT_PATH)11 };12 if !unit_path.exists() {13- bail!("nothing to uninstall: {} does not exist", unit_path.display());14+ bail!(15+ "nothing to uninstall: {} does not exist",16+ unit_path.display()17+ );18 }19 // best effort: a masked/never-enabled unit must not block removal20 if let Err(e) = systemctl(user_mode, &["disable", "--now", UNIT_NAME]) {21@@ -372,11 +375,9 @@ mod tests {22 #[test]23 fn unit_opens_exactly_the_needed_write_paths() {24 let unit = render_unit(&spec(None));25- assert!(26- unit.contains(27- "ReadWritePaths=/home/alice/.pi/agent/sessions /home/alice/.local/share/ssync"28- )29- );30+ assert!(unit.contains(31+ "ReadWritePaths=/home/alice/.pi/agent/sessions /home/alice/.local/share/ssync"32+ ));33 }34 35 #[test]36@@ -426,7 +427,10 @@ mod tests {37 fn missing_components_lists_only_what_create_would_add() {38 let base = scratch("missing");39 let leaf = base.join("a/b");40- assert_eq!(missing_components(&leaf), vec![leaf.clone(), base.join("a")]);41+ assert_eq!(42+ missing_components(&leaf),43+ vec![leaf.clone(), base.join("a")]44+ );45 assert!(missing_components(&base).is_empty());46 std::fs::remove_dir_all(&base).unwrap();47 }