From a8eedfcac56779483c68bd507d8a773afff811fb Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Sat, 11 May 2024 18:58:47 +0100 Subject: [PATCH] fix: clippy fixes for tests --- crates/server/src/config/tests.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/server/src/config/tests.rs b/crates/server/src/config/tests.rs index f048962..d669ad2 100644 --- a/crates/server/src/config/tests.rs +++ b/crates/server/src/config/tests.rs @@ -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());