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

@ -29,7 +29,6 @@ malloc_size_of_derive = { path = "../malloc_size_of_derive" }
msg = {path = "../msg"}
net_traits = {path = "../net_traits"}
profile_traits = {path = "../profile_traits"}
rustc-serialize = "0.3.4"
serde = "1.0"
servo_atoms = {path = "../atoms"}
servo_channel = {path = "../channel"}

View file

@ -29,7 +29,6 @@ extern crate malloc_size_of_derive;
extern crate msg;
extern crate net_traits;
extern crate profile_traits;
extern crate rustc_serialize;
#[macro_use]
extern crate serde;
extern crate servo_atoms;

View file

@ -9,7 +9,6 @@ use euclid::Rect;
use hyper_serde::Serde;
use ipc_channel::ipc::IpcSender;
use msg::constellation_msg::BrowsingContextId;
use rustc_serialize::json::{Json, ToJson};
use servo_url::ServoUrl;
#[derive(Debug, Deserialize, Serialize)]
@ -75,18 +74,6 @@ pub enum WebDriverFrameId {
Parent,
}
impl ToJson for WebDriverJSValue {
fn to_json(&self) -> Json {
match *self {
WebDriverJSValue::Undefined => Json::Null,
WebDriverJSValue::Null => Json::Null,
WebDriverJSValue::Boolean(ref x) => x.to_json(),
WebDriverJSValue::Number(ref x) => x.to_json(),
WebDriverJSValue::String(ref x) => x.to_json(),
}
}
}
#[derive(Debug, Deserialize, Serialize)]
pub enum LoadStatus {
LoadComplete,