@@ -114,9 +114,9 @@ impl Duration {
114114 #[ inline]
115115 pub const fn from_millis ( millis : u64 ) -> Duration {
116116 Duration {
117- secs : millis / MILLIS_PER_SEC ,
118- nanos : ( ( millis % MILLIS_PER_SEC ) as u32 ) * NANOS_PER_MILLI ,
119- }
117+ secs : millis / MILLIS_PER_SEC ,
118+ nanos : ( ( millis % MILLIS_PER_SEC ) as u32 ) * NANOS_PER_MILLI ,
119+ }
120120 }
121121
122122 /// Creates a new `Duration` from the specified number of microseconds.
@@ -136,9 +136,9 @@ impl Duration {
136136 #[ inline]
137137 pub const fn from_micros ( micros : u64 ) -> Duration {
138138 Duration {
139- secs : micros / MICROS_PER_SEC ,
140- nanos : ( ( micros % MICROS_PER_SEC ) as u32 ) * NANOS_PER_MICRO ,
141- }
139+ secs : micros / MICROS_PER_SEC ,
140+ nanos : ( ( micros % MICROS_PER_SEC ) as u32 ) * NANOS_PER_MICRO ,
141+ }
142142 }
143143
144144 /// Creates a new `Duration` from the specified number of nanoseconds.
@@ -158,9 +158,9 @@ impl Duration {
158158 #[ inline]
159159 pub const fn from_nanos ( nanos : u64 ) -> Duration {
160160 Duration {
161- secs : nanos / ( NANOS_PER_SEC as u64 ) ,
162- nanos : ( nanos % ( NANOS_PER_SEC as u64 ) ) as u32 ,
163- }
161+ secs : nanos / ( NANOS_PER_SEC as u64 ) ,
162+ nanos : ( nanos % ( NANOS_PER_SEC as u64 ) ) as u32 ,
163+ }
164164 }
165165
166166 /// Returns the number of _whole_ seconds contained by this `Duration`.
0 commit comments