From 881300ee39c3c4644ef09078b850937c814e338e Mon Sep 17 00:00:00 2001 From: Hanno Braun Date: Tue, 4 Jul 2023 11:46:45 +0200 Subject: [PATCH] Refactor --- tools/automator/src/blog/util.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tools/automator/src/blog/util.rs b/tools/automator/src/blog/util.rs index 199d96042..dc61b008a 100644 --- a/tools/automator/src/blog/util.rs +++ b/tools/automator/src/blog/util.rs @@ -6,8 +6,7 @@ use tokio::fs::{self, File}; pub fn date() -> String { let now = Utc::now(); - let year = now.year(); - format!("{year}-{:02}-{:02}", now.month(), now.day()) + format!("{}-{:02}-{:02}", now.year(), now.month(), now.day()) } pub async fn create_blog_post_file(