from_micros: Fix missing {
This commit is contained in:
parent
2e6aed8f47
commit
abc53cc140
1 changed files with 1 additions and 0 deletions
|
|
@ -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.
|
||||
///
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue