fix: clippy fixes for tests
All checks were successful
ci/woodpecker/push/cron-docker-builder Pipeline was successful
ci/woodpecker/push/push-next Pipeline was successful
ci/woodpecker/push/tag-created Pipeline was successful

This commit is contained in:
Paul Campbell 2024-05-11 18:58:47 +01:00
parent 3a112ddd8b
commit a8eedfcac5

View file

@ -170,7 +170,7 @@ fn repo_details_find_default_push_remote_finds_correct_remote() -> Result<()> {
ServerGeneration::new(),
common::forge_details(1, ForgeType::MockForge),
None,
GitDir::new(&root), // Server GitDir - should be ignored
GitDir::new(root), // Server GitDir - should be ignored
);
repo_details.forge.hostname = Hostname("git.kemitix.net".to_string());
repo_details.repo_path = RepoPath("kemitix/git-next".to_string());
@ -196,7 +196,7 @@ fn gitdir_validate_should_pass_a_valid_git_repo() -> Result<()> {
ServerGeneration::new(),
common::forge_details(1, ForgeType::MockForge),
None,
GitDir::new(&root), // Server GitDir - should be ignored
GitDir::new(root), // Server GitDir - should be ignored
);
repo_details.forge.hostname = Hostname("git.kemitix.net".to_string());
repo_details.repo_path = RepoPath("kemitix/git-next".to_string());
@ -216,7 +216,7 @@ fn gitdir_validate_should_fail_a_git_repo_with_wrong_remote() -> Result<()> {
ServerGeneration::new(),
common::forge_details(1, ForgeType::MockForge),
None,
GitDir::new(&root), // Server GitDir - should be ignored
GitDir::new(root), // Server GitDir - should be ignored
);
repo_details.forge.hostname = Hostname("localhost".to_string());
repo_details.repo_path = RepoPath("hello/world".to_string());