From c3338e86e2d7423295f976af539dd41f39f7c635 Mon Sep 17 00:00:00 2001 From: Huan-Cheng Chang Date: Fri, 25 Oct 2024 22:06:20 +0100 Subject: [PATCH] fmt --- src/date.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/date.rs b/src/date.rs index 1851b35..6ca80f7 100644 --- a/src/date.rs +++ b/src/date.rs @@ -226,9 +226,8 @@ impl Date { /// assert_eq!(d.timestamp(), 1_654_560_000); /// ``` pub fn timestamp(&self) -> i64 { - let days = (self.year as i64) * 365 - + (self.ordinal_day() - 1) as i64 - + intervening_leap_years(self.year as i64); + let days = + (self.year as i64) * 365 + (self.ordinal_day() - 1) as i64 + intervening_leap_years(self.year as i64); days * 86400 + UNIX_0000 }