From 41631bc0e663325625637bd6369699d24b9b5fe3 Mon Sep 17 00:00:00 2001 From: dploch Date: Fri, 8 Nov 2024 11:40:09 -0500 Subject: [PATCH] test_git: fix some clippy ref errors --- cli/tests/test_config_command.rs | 2 +- lib/tests/test_git.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cli/tests/test_config_command.rs b/cli/tests/test_config_command.rs index f5d389b087..2a85a7f645 100644 --- a/cli/tests/test_config_command.rs +++ b/cli/tests/test_config_command.rs @@ -685,7 +685,7 @@ fn test_config_unset_for_repo() { test_env.jj_cmd_ok(&repo_path, &["config", "unset", "--repo", "test-key"]); let repo_config_path = repo_path.join(".jj/repo/config.toml"); - let repo_config_toml = std::fs::read_to_string(&repo_config_path).unwrap(); + let repo_config_toml = std::fs::read_to_string(repo_config_path).unwrap(); insta::assert_snapshot!(repo_config_toml, @""); } diff --git a/lib/tests/test_git.rs b/lib/tests/test_git.rs index 70dda19c9a..ebfc6870ef 100644 --- a/lib/tests/test_git.rs +++ b/lib/tests/test_git.rs @@ -3514,7 +3514,7 @@ fn test_shallow_commits_lack_parents() { for commit in shallow_commits { writeln!(buf, "{commit}").unwrap(); } - fs::write(&shallow_file, buf).unwrap(); + fs::write(shallow_file, buf).unwrap(); }; make_shallow(repo, vec![b.id(), c.id()]);