Skip to content
This repository was archived by the owner on Apr 13, 2020. It is now read-only.

Commit 9f414ed

Browse files
author
No-Jun Park
committed
fix to accomodate rust-lang/rust#31928
1 parent 2841747 commit 9f414ed

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
sudo: required
22
language: rust
33
rust:
4-
- nightly-2016-02-22
4+
- nightly-2016-03-01
55
cache:
66
directories:
77
- $HOME/.cargo

src/managed_process.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const RESTART_TIME_THRESHOLD: f64 = 5.0; // seconds
2020

2121
fn seconds_since_epoch() -> f64 {
2222
let now = SystemTime::now();
23-
now.duration_from_earlier(UNIX_EPOCH).unwrap().as_secs() as f64
23+
now.duration_since(UNIX_EPOCH).unwrap().as_secs() as f64
2424
}
2525

2626
pub struct ManagedProcess {

0 commit comments

Comments
 (0)