about summary refs log tree commit diff
path: root/src/libstd/time
diff options
context:
space:
mode:
authorNathaniel Ringo <remexre@gmail.com>2018-01-09 15:31:25 -0600
committerNathaniel Ringo <remexre@gmail.com>2018-01-09 15:31:25 -0600
commitc25178c9fd15a5dffdc91d1905e44e6c39e306aa (patch)
tree4e293fabe355842619abc183beee607686bca5f1 /src/libstd/time
parent7caf753d4413cb0ae7bc266fd89e56f1d3842857 (diff)
downloadrust-c25178c9fd15a5dffdc91d1905e44e6c39e306aa.tar.gz
rust-c25178c9fd15a5dffdc91d1905e44e6c39e306aa.zip
Fixes whitespace.
Diffstat (limited to 'src/libstd/time')
-rw-r--r--src/libstd/time/duration.rs18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/libstd/time/duration.rs b/src/libstd/time/duration.rs
index bb30d0d80bd..f01a27c84c1 100644
--- a/src/libstd/time/duration.rs
+++ b/src/libstd/time/duration.rs
@@ -114,9 +114,9 @@ impl Duration {
     #[inline]
     pub const fn from_millis(millis: u64) -> Duration {
         Duration {
-		secs: millis / MILLIS_PER_SEC,
-		nanos: ((millis % MILLIS_PER_SEC) as u32) * NANOS_PER_MILLI,
-	}
+            secs: millis / MILLIS_PER_SEC,
+            nanos: ((millis % MILLIS_PER_SEC) as u32) * NANOS_PER_MILLI,
+        }
     }
 
     /// Creates a new `Duration` from the specified number of microseconds.
@@ -136,9 +136,9 @@ impl Duration {
     #[inline]
     pub const fn from_micros(micros: u64) -> Duration {
         Duration {
-		secs: micros / MICROS_PER_SEC,
-		nanos: ((micros % MICROS_PER_SEC) as u32) * NANOS_PER_MICRO,
-	}
+            secs: micros / MICROS_PER_SEC,
+            nanos: ((micros % MICROS_PER_SEC) as u32) * NANOS_PER_MICRO,
+        }
     }
 
     /// Creates a new `Duration` from the specified number of nanoseconds.
@@ -158,9 +158,9 @@ impl Duration {
     #[inline]
     pub const fn from_nanos(nanos: u64) -> Duration {
         Duration {
-		secs: nanos / (NANOS_PER_SEC as u64),
-		nanos: (nanos % (NANOS_PER_SEC as u64)) as u32,
-	}
+            secs: nanos / (NANOS_PER_SEC as u64),
+            nanos: (nanos % (NANOS_PER_SEC as u64)) as u32,
+        }
     }
 
     /// Returns the number of _whole_ seconds contained by this `Duration`.