🎨 style: apply rustfmt formatting to test assertions

This commit is contained in:
Jeremiah Russell
2025-10-21 12:38:09 +01:00
committed by Jeremiah Russell
parent 3dcd229ee9
commit b33458cf3e

View File

@@ -342,7 +342,10 @@ mod unit_tests {
#[cfg(unix)] #[cfg(unix)]
mode: Some(0o755), 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 { let copy_file_op = Operation::CopyFile {
from: temp_path.clone(), from: temp_path.clone(),
@@ -353,7 +356,11 @@ mod unit_tests {
}; };
assert_eq!( assert_eq!(
format!("{copy_file_op}"), 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 { let write_file_op = Operation::WriteFile {
@@ -363,7 +370,10 @@ mod unit_tests {
mode: Some(0o644), mode: Some(0o644),
backup_if_exists: false, 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 { let oauth_op = Operation::RunOAuth2 {
config_root: "h:.config".to_string(), config_root: "h:.config".to_string(),