Skip to content

Commit

Permalink
test_git: fix some clippy ref errors
Browse files Browse the repository at this point in the history
  • Loading branch information
torquestomp committed Nov 8, 2024
1 parent 1240487 commit 41631bc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cli/tests/test_config_command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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, @"");
}

Expand Down
2 changes: 1 addition & 1 deletion lib/tests/test_git.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()]);

Expand Down

0 comments on commit 41631bc

Please sign in to comment.