From d14d0b5965bb7f2cb980bb6a9db37d4e46499869 Mon Sep 17 00:00:00 2001
From: Moses Miller <majora320@gmail.com>
Date: Fri, 11 May 2018 18:02:46 -0700
Subject: [PATCH] Fix various formatting issues

---
 src/time/src/constants.rs | 2 +-
 src/time/src/lib.rs       | 3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/time/src/constants.rs b/src/time/src/constants.rs
index fe6eae8e..becfaace 100644
--- a/src/time/src/constants.rs
+++ b/src/time/src/constants.rs
@@ -48,4 +48,4 @@ pub(crate) const CLOCK_MONOTONIC: clockid_t = 1;
 pub(crate) const CLOCK_PROCESS_CPUTIME_ID: clockid_t = 2;
 pub(crate) const CLOCK_THREAD_CPUTIME_ID: clockid_t = 3;
 
-pub(crate) const CLOCKS_PER_SEC: time_t = 1_000_000;
\ No newline at end of file
+pub(crate) const CLOCKS_PER_SEC: time_t = 1_000_000;
diff --git a/src/time/src/lib.rs b/src/time/src/lib.rs
index 32cc4ef7..48a30121 100644
--- a/src/time/src/lib.rs
+++ b/src/time/src/lib.rs
@@ -105,7 +105,8 @@ pub extern "C" fn clock() -> clock_t {
     }
 
     if ts.tv_sec > time_t::max_value() / CLOCKS_PER_SEC
-        || ts.tv_nsec / (1_000_000_000 / CLOCKS_PER_SEC) > time_t::max_value() - CLOCKS_PER_SEC * ts.tv_sec
+        || ts.tv_nsec / (1_000_000_000 / CLOCKS_PER_SEC)
+            > time_t::max_value() - CLOCKS_PER_SEC * ts.tv_sec
     {
         return -1;
     }
-- 
GitLab