Skip to content

Commit

Permalink
Avoid using APIs stabilized after Rust 1.26
Browse files Browse the repository at this point in the history
  • Loading branch information
dmit authored and koute committed May 1, 2019
1 parent 500a8d6 commit 688a6b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cmd_start.rs
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ fn monitor_for_changes_and_rebuild(
continue;
}

trace!( "Starting build in {}ms if no more changes detected", event_timeout.as_millis() );
trace!( "Starting build in {}.{:0>3}s if no more changes detected", event_timeout.as_secs(), event_timeout.subsec_nanos() / 1_000_000 );
let mut deadline = Instant::now() + event_timeout;
while Instant::now() < deadline {
match rx.recv_timeout( deadline - Instant::now() ) {
Expand All @@ -234,7 +234,7 @@ fn monitor_for_changes_and_rebuild(
continue;
}

trace!( "Noticed follow-up change; waiting additional {}ms for more", event_timeout.as_millis() );
trace!( "Noticed follow-up change; waiting additional {}.{:0>3}s for more", event_timeout.as_secs(), event_timeout.subsec_nanos() / 1_000_000 );
deadline = Instant::now() + event_timeout;
}
Err( RecvTimeoutError::Timeout ) => {
Expand Down

0 comments on commit 688a6b5

Please sign in to comment.