diff --git a/Cargo.lock b/Cargo.lock index 5f611e9ee7c..1ad6dcd35fe 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -926,7 +926,6 @@ dependencies = [ "ordered-float 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)", "plugins 0.0.1", "range 0.0.1", - "rustc-serialize 0.3.22 (registry+https://github.com/rust-lang/crates.io-index)", "serde 0.8.20 (registry+https://github.com/rust-lang/crates.io-index)", "serde_derive 0.8.20 (registry+https://github.com/rust-lang/crates.io-index)", "servo-fontconfig 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)", diff --git a/components/gfx/Cargo.toml b/components/gfx/Cargo.toml index d504e0bb138..7ce2bf72546 100644 --- a/components/gfx/Cargo.toml +++ b/components/gfx/Cargo.toml @@ -29,7 +29,6 @@ net_traits = {path = "../net_traits"} ordered-float = "0.2.2" plugins = {path = "../plugins"} range = {path = "../range"} -rustc-serialize = "0.3" serde = "0.8" servo_atoms = {path = "../atoms"} servo_geometry = {path = "../geometry"} diff --git a/components/gfx/display_list/mod.rs b/components/gfx/display_list/mod.rs index 3a2178255a9..544a4d4029c 100644 --- a/components/gfx/display_list/mod.rs +++ b/components/gfx/display_list/mod.rs @@ -251,7 +251,7 @@ impl<'a> Iterator for DisplayListTraversal<'a> { /// Display list sections that make up a stacking context. Each section here refers /// to the steps in CSS 2.1 Appendix E. /// -#[derive(Clone, Copy, Debug, Deserialize, Eq, HeapSizeOf, Ord, PartialEq, PartialOrd, RustcEncodable, Serialize)] +#[derive(Clone, Copy, Debug, Deserialize, Eq, HeapSizeOf, Ord, PartialEq, PartialOrd, Serialize)] pub enum DisplayListSection { BackgroundAndBorders, BlockBackgroundsAndBorders, @@ -259,7 +259,7 @@ pub enum DisplayListSection { Outlines, } -#[derive(Clone, Copy, Debug, Deserialize, Eq, HeapSizeOf, Ord, PartialEq, PartialOrd, RustcEncodable, Serialize)] +#[derive(Clone, Copy, Debug, Deserialize, Eq, HeapSizeOf, Ord, PartialEq, PartialOrd, Serialize)] pub enum StackingContextType { Real, PseudoPositioned, diff --git a/components/gfx/lib.rs b/components/gfx/lib.rs index 2c50b5532c4..e02793c3a32 100644 --- a/components/gfx/lib.rs +++ b/components/gfx/lib.rs @@ -58,7 +58,6 @@ extern crate net_traits; extern crate ordered_float; #[macro_use] extern crate range; -extern crate rustc_serialize; extern crate serde; #[macro_use] extern crate serde_derive;