From d7fef30ac3f539975ef9edbba8e0af4a4e9ff3de Mon Sep 17 00:00:00 2001 From: Ruben Beltran del Rio Date: Sun, 5 Jan 2025 00:38:55 +0100 Subject: Commit batch of lints to allow autofix --- src/remote/git.rs | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'src/remote/git.rs') diff --git a/src/remote/git.rs b/src/remote/git.rs index 66c5a89..a8a9010 100644 --- a/src/remote/git.rs +++ b/src/remote/git.rs @@ -18,15 +18,24 @@ impl super::Remote for Git { } fn sync_up(&self, remote: &str, directory: &PathBuf) -> Result<()> { - let timestamp = SystemTime::now().duration_since(UNIX_EPOCH) + let timestamp = SystemTime::now() + .duration_since(UNIX_EPOCH) .map_err(|_| Error::new(Other, "Invalid time"))? .as_millis(); let commands = vec![ format!("cd {} && git init -b main", directory.display()), format!("cd {} && git add .", directory.display()), - format!("cd {} && git commit --allow-empty -m blog-sync-up-{}", directory.display(), timestamp), - format!("cd {} && git push {} main --force", directory.display(), remote), + format!( + "cd {} && git commit --allow-empty -m blog-sync-up-{}", + directory.display(), + timestamp + ), + format!( + "cd {} && git push {} main --force", + directory.display(), + remote + ), ]; for command in commands { -- cgit