diff --git a/cli/tests/test_commit_command.rs b/cli/tests/test_commit_command.rs index 3050a9e11..5d1e2ecce 100644 --- a/cli/tests/test_commit_command.rs +++ b/cli/tests/test_commit_command.rs @@ -88,7 +88,7 @@ fn test_commit_interactive() { std::fs::write(edit_script, ["dump editor"].join("\0")).unwrap(); let diff_editor = test_env.set_up_fake_diff_editor(); - std::fs::write(&diff_editor, "rm file2").unwrap(); + std::fs::write(diff_editor, "rm file2").unwrap(); // Create a commit interactively and select only file1 test_env.jj_cmd_ok(&workspace_path, &["commit", "-i"]); diff --git a/cli/tests/test_diff_command.rs b/cli/tests/test_diff_command.rs index 2b76ca58e..43a4bf4ac 100644 --- a/cli/tests/test_diff_command.rs +++ b/cli/tests/test_diff_command.rs @@ -777,7 +777,7 @@ fn test_diff_external_tool_symlink() { let edit_script = test_env.set_up_fake_diff_editor(); std::fs::write( - &edit_script, + edit_script, "print-files-before\0print --\0print-files-after", ) .unwrap();