aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/command/add.rs2
-rw-r--r--src/remote/git.rs6
2 files changed, 4 insertions, 4 deletions
diff --git a/src/command/add.rs b/src/command/add.rs
index 9622f81..132b7cd 100644
--- a/src/command/add.rs
+++ b/src/command/add.rs
@@ -68,7 +68,7 @@ mod tests {
let posts_dir = test_dir.join("posts");
create_dir_all(&posts_dir).expect("Could not create posts test directory");
- create_dir_all(&posts_dir.join("0")).expect("Could not create post 0 test directory");
+ create_dir_all(posts_dir.join("0")).expect("Could not create post 0 test directory");
// Create Test Files
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())