From 291195b17e40c9ebc75e6d0b25195a02596b59e1 Mon Sep 17 00:00:00 2001 From: Pinapelz Date: Thu, 22 Aug 2024 17:07:17 -0700 Subject: lint eorzean_time.rs --- src/eorzean_time.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/eorzean_time.rs b/src/eorzean_time.rs index afd4809..e6ac83b 100644 --- a/src/eorzean_time.rs +++ b/src/eorzean_time.rs @@ -1,5 +1,4 @@ use chrono::{DateTime,Utc}; -use std::fmt; const EORZEA_CONSTANT: f64 = 3600.0 / 175.0; @@ -105,7 +104,7 @@ pub fn convert_to_eorzean_date(input_time: T) -> EorzeanDate let bells = (epoch / (1000.0 * EORZEA_SECONDS_PER_HOUR)) % 24.0; let total_suns = (epoch / (1000.0 * EORZEA_SECONDS_PER_SUN)) as u64; let year = total_suns / (32 * 12); - let moon_idx = ((total_suns / 32) % 12 + 1); + let moon_idx = (total_suns / 32) % 12 + 1; let mut moon_str = EORZEA_MOON_CYCLE_PREFIX[(moon_idx / 2) as usize].to_string(); if moon_idx % 2 == 0 { -- cgit v1.2.3