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

@ -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,