mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Remove rustc-serialize from the dependencies
This commit is contained in:
parent
da2d9b2228
commit
221199d277
8 changed files with 40 additions and 69 deletions
|
@ -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"}
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue