From 758b437170c1ddbeae93c2452014ffdc5598483c Mon Sep 17 00:00:00 2001
From: jD91mZM2 <me@krake.one>
Date: Thu, 12 Jul 2018 21:40:44 +0200
Subject: [PATCH] Run fmt.sh

---
 src/time/src/lib.rs | 10 +++-------
 1 file changed, 3 insertions(+), 7 deletions(-)

diff --git a/src/time/src/lib.rs b/src/time/src/lib.rs
index 3269f449..43014c27 100644
--- a/src/time/src/lib.rs
+++ b/src/time/src/lib.rs
@@ -218,11 +218,7 @@ pub unsafe extern "C" fn localtime_r(clock: *const time_t, r: *mut tm) -> *mut t
     (*r).tm_year = 1970;
 
     loop {
-        let days_in_year = if leap_year((*r).tm_year) {
-            366
-        } else {
-            365
-        };
+        let days_in_year = if leap_year((*r).tm_year) { 366 } else { 365 };
 
         if days < days_in_year {
             break;
@@ -240,9 +236,9 @@ pub unsafe extern "C" fn localtime_r(clock: *const time_t, r: *mut tm) -> *mut t
 
     const MONTH_DAYS: [[c_int; 12]; 2] = [
         // Non-leap years:
-        [ 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 ],
+        [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31],
         // Leap years:
-        [ 31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 ],
+        [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31],
     ];
 
     let leap = if leap_year((*r).tm_year) { 1 } else { 0 };
-- 
GitLab