From e8e236956443d072124f7d32d0536c80f0ac2854 Mon Sep 17 00:00:00 2001 From: yggverse Date: Mon, 8 Sep 2025 16:33:50 +0300 Subject: [PATCH] rename `date` to `format_date` --- src/config.rs | 2 +- src/main.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/config.rs b/src/config.rs index b750411..9dca1c0 100644 --- a/src/config.rs +++ b/src/config.rs @@ -14,7 +14,7 @@ pub struct Config { /// Date format #[arg(short, long, default_value_t = String::from("%Y/%m/%d"))] - pub date: String, + pub format_date: String, /// Tracker(s) to join / scrape requests #[arg(short, long)] diff --git a/src/main.rs b/src/main.rs index 8f8fee2..dd1548d 100644 --- a/src/main.rs +++ b/src/main.rs @@ -301,7 +301,7 @@ fn index(config: &Config, public: &Public, page: Option) -> Result Result { b.push(format!( "{} • {} • {}\n", - torrent.time.format(&config.date), + torrent.time.format(&config.format_date), format::total(&i), format::files(&i), ));