mirror of
https://github.com/servo/servo.git
synced 2025-08-05 05:30:08 +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
|
@ -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