aboutsummaryrefslogtreecommitdiff
path: root/src/remote
diff options
context:
space:
mode:
authorRuben Beltran del Rio <git@r.bdr.sh>2025-01-07 21:19:35 +0100
committerRuben Beltran del Rio <git@r.bdr.sh>2025-01-07 21:19:35 +0100
commit98d323f5e86df5eab2218ae879da68ae3cb5230a (patch)
tree3714096d1a4f49369095e5fc0d85ae1148fb626d /src/remote
parent8342f640b50e2f1be70e1041edb4028f046a4df8 (diff)
Apply clippy
Diffstat (limited to 'src/remote')
-rw-r--r--src/remote/git.rs8
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} && \