diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/remote/git.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/remote/git.rs b/src/remote/git.rs index 556bed4..c260df8 100644 --- a/src/remote/git.rs +++ b/src/remote/git.rs @@ -87,7 +87,7 @@ mod tests { let remote_path = path.display(); Command::new("sh") .arg("-c") - .arg(&format!("cd {remote_path} && git init --bare")) + .arg(format!("cd {remote_path} && git init --bare")) .stdout(Stdio::null()) .stderr(Stdio::null()) .status() @@ -97,7 +97,7 @@ mod tests { fn assert_file_does_not_exist(repo_path: &str, file_path: &str) { let output = Command::new("sh") .arg("-c") - .arg(&format!("cd {repo_path} && git show main:{file_path}")) + .arg(format!("cd {repo_path} && git show main:{file_path}")) .stderr(Stdio::null()) .output() .expect("Failed to read from repo"); @@ -108,7 +108,7 @@ mod tests { fn assert_file_in_repo_with_contents(repo_path: &str, file_path: &str, contents: &str) { let output = Command::new("sh") .arg("-c") - .arg(&format!("cd {repo_path} && git show main:{file_path}")) + .arg(format!("cd {repo_path} && git show main:{file_path}")) .stderr(Stdio::null()) .output() .expect("Failed to read from repo"); @@ -124,7 +124,7 @@ mod tests { Command::new("sh") .arg("-c") - .arg(&format!( + .arg(format!( "cd {test_dir_display} && \ git clone {repo_path} . && \ echo '{contents}' > {file_path} && \ |