Remove rustc-serialize from the dependencies

This commit is contained in:
Bastien Orivel 2018-11-02 00:26:24 +01:00
parent da2d9b2228
commit 221199d277
8 changed files with 40 additions and 69 deletions

View file

@ -4420,7 +4420,7 @@ impl DocumentMethods for Document {
}
fn update_with_current_time_ms(marker: &Cell<u64>) {
if marker.get() == Default::default() {
if marker.get() == 0 {
let time = time::get_time();
let current_time_ms = time.sec * 1000 + time.nsec as i64 / 1000000;
marker.set(current_time_ms as u64);