test_git: fix some clippy ref errors

This commit is contained in:
dploch 2024-11-08 11:40:09 -05:00 committed by Daniel Ploch
parent 1240487cb6
commit 41631bc0e6
2 changed files with 2 additions and 2 deletions

View file

@ -685,7 +685,7 @@ fn test_config_unset_for_repo() {
test_env.jj_cmd_ok(&repo_path, &["config", "unset", "--repo", "test-key"]); 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_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, @""); insta::assert_snapshot!(repo_config_toml, @"");
} }

View file

@ -3514,7 +3514,7 @@ fn test_shallow_commits_lack_parents() {
for commit in shallow_commits { for commit in shallow_commits {
writeln!(buf, "{commit}").unwrap(); writeln!(buf, "{commit}").unwrap();
} }
fs::write(&shallow_file, buf).unwrap(); fs::write(shallow_file, buf).unwrap();
}; };
make_shallow(repo, vec![b.id(), c.id()]); make_shallow(repo, vec![b.id(), c.id()]);