Skip to content

Commit

Permalink
Fixes whitespace.
Browse files Browse the repository at this point in the history
  • Loading branch information
remexre committed Jan 9, 2018
1 parent 7caf753 commit c25178c
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/libstd/time/duration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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.
Expand All @@ -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`.
Expand Down

0 comments on commit c25178c

Please sign in to comment.