aboutsummaryrefslogtreecommitdiff
path: root/src/remote/git.rs
diff options
context:
space:
mode:
authorRuben Beltran del Rio <git@r.bdr.sh>2025-01-18 13:27:32 +0100
committerRuben Beltran del Rio <git@r.bdr.sh>2025-01-18 13:27:32 +0100
commit88c54a37d27ed6a5eba3cb1911723a7e331f5bd3 (patch)
tree4b470a674124e6ff1f563cc6487dfaf514d9ac21 /src/remote/git.rs
parentceb8a4faf7144b81b13efed33a57655de9268640 (diff)
Run clippy
Diffstat (limited to 'src/remote/git.rs')
-rw-r--r--src/remote/git.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/remote/git.rs b/src/remote/git.rs
index 912d8c1..3290793 100644
--- a/src/remote/git.rs
+++ b/src/remote/git.rs
@@ -30,7 +30,7 @@ impl super::Remote for Git {
.map_err(|_| Error::new(Other, "Invalid time"))?
.as_millis();
- let commit_name = format!("blog-sync-up-{}", timestamp);
+ let commit_name = format!("blog-sync-up-{timestamp}");
let command_arguments = vec![
vec!["init", "-b", "main"],
vec!["add", "."],
@@ -40,7 +40,7 @@ impl super::Remote for Git {
for arguments in command_arguments {
Command::new("git")
- .current_dir(&directory)
+ .current_dir(directory)
.args(&arguments)
.stdout(Stdio::null())
.stderr(Stdio::null())
@@ -61,7 +61,7 @@ impl super::Remote for Git {
for arguments in command_arguments {
Command::new("git")
- .current_dir(&directory)
+ .current_dir(directory)
.args(&arguments)
.stdout(Stdio::null())
.stderr(Stdio::null())