Auto merge of #22087 - Eijebong:rust_serialize, r=jdm

Remove rustc-serialize from the dependencies

Closes #12410.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/22087)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2018-11-07 16:07:38 -05:00 committed by GitHub
commit 741bd8e739
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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);