From b33458cf3ec89bd97e319713f41601a10ce8d573 Mon Sep 17 00:00:00 2001 From: Jeremiah Russell Date: Tue, 21 Oct 2025 12:38:09 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20style:=20apply=20rustfmt=20forma?= =?UTF-8?q?tting=20to=20test=20assertions?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/cli/init_cli/tests.rs | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/src/cli/init_cli/tests.rs b/src/cli/init_cli/tests.rs index ebf6468..96c4b9f 100644 --- a/src/cli/init_cli/tests.rs +++ b/src/cli/init_cli/tests.rs @@ -342,7 +342,10 @@ mod unit_tests { #[cfg(unix)] mode: Some(0o755), }; - assert_eq!(format!("{create_dir_op}"), format!("Create directory: {}", temp_path.display())); + assert_eq!( + format!("{create_dir_op}"), + format!("Create directory: {}", temp_path.display()) + ); let copy_file_op = Operation::CopyFile { from: temp_path.clone(), @@ -353,7 +356,11 @@ mod unit_tests { }; assert_eq!( format!("{copy_file_op}"), - format!("Copy file: {} → {}", temp_path.display(), temp_path.join("dest").display()) + format!( + "Copy file: {} → {}", + temp_path.display(), + temp_path.join("dest").display() + ) ); let write_file_op = Operation::WriteFile { @@ -363,7 +370,10 @@ mod unit_tests { mode: Some(0o644), backup_if_exists: false, }; - assert_eq!(format!("{write_file_op}"), format!("Write file: {}", temp_path.display())); + assert_eq!( + format!("{write_file_op}"), + format!("Write file: {}", temp_path.display()) + ); let oauth_op = Operation::RunOAuth2 { config_root: "h:.config".to_string(),