from_micros: Fix missing {

This commit is contained in:
Romain Porte 2017-09-10 00:27:39 +02:00
parent 2e6aed8f47
commit abc53cc140

View file

@ -116,6 +116,7 @@ impl Duration {
let secs = millis / MILLIS_PER_SEC;
let nanos = ((millis % MILLIS_PER_SEC) as u32) * NANOS_PER_MILLI;
Duration { secs: secs, nanos: nanos }
}
/// Creates a new `Duration` from the specified number of microseconds.
///