aboutsummaryrefslogtreecommitdiffstats
path: root/components/gfx_traits/lib.rs
diff options
context:
space:
mode:
authorMs2ger <Ms2ger@gmail.com>2017-01-10 10:05:46 +0100
committerMs2ger <Ms2ger@gmail.com>2017-01-10 10:05:46 +0100
commitd12b385b418f09c6436d2db575209e85de3fe2b2 (patch)
tree59ad90cf5362ea0e3eb22224d3dda5b6332b69b6 /components/gfx_traits/lib.rs
parent137b277f1e7b43a5cd8438970e398e97d68ebb36 (diff)
downloadservo-d12b385b418f09c6436d2db575209e85de3fe2b2.tar.gz
servo-d12b385b418f09c6436d2db575209e85de3fe2b2.zip
Remove the rustc-serialize dependency from gfx_traits.
Diffstat (limited to 'components/gfx_traits/lib.rs')
-rw-r--r--components/gfx_traits/lib.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/components/gfx_traits/lib.rs b/components/gfx_traits/lib.rs
index 1bb106ac23a..afc0aac0080 100644
--- a/components/gfx_traits/lib.rs
+++ b/components/gfx_traits/lib.rs
@@ -14,7 +14,6 @@ extern crate heapsize;
#[macro_use] extern crate heapsize_derive;
#[macro_use]
extern crate range;
-extern crate rustc_serialize;
extern crate serde;
#[macro_use]
extern crate serde_derive;
@@ -41,7 +40,7 @@ const SPECIAL_STACKING_CONTEXT_ID_MASK: usize = 0xffff;
/// One hardware pixel.
///
/// This unit corresponds to the smallest addressable element of the display hardware.
-#[derive(Copy, Clone, RustcEncodable, Debug)]
+#[derive(Copy, Clone, Debug)]
pub enum DevicePixel {}
/// A newtype struct for denoting the age of messages; prevents race conditions.
@@ -172,7 +171,7 @@ impl FragmentType {
}
int_range_index! {
- #[derive(Deserialize, Serialize, RustcEncodable)]
+ #[derive(Deserialize, Serialize)]
#[doc = "An index that refers to a byte offset in a text run. This could \
point to the middle of a glyph."]
#[derive(HeapSizeOf)]