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()]);