aboutsummaryrefslogtreecommitdiffstats
path: root/components/util/str.rs
diff options
context:
space:
mode:
authorAnthony Ramine <n.oxyde@gmail.com>2016-01-30 15:06:31 +0100
committerAnthony Ramine <n.oxyde@gmail.com>2016-02-04 22:03:32 +0100
commitcb5cd8d881c39f549381e078b44f341dea733e68 (patch)
tree2035bc256a114cd362a10cf7e8c461a7743f8209 /components/util/str.rs
parent9932a5cf82a9fb109e7ac8b07e4f19535101ce44 (diff)
downloadservo-cb5cd8d881c39f549381e078b44f341dea733e68.tar.gz
servo-cb5cd8d881c39f549381e078b44f341dea733e68.zip
Say farewell to in-tree HeapSizeOf
Diffstat (limited to 'components/util/str.rs')
-rw-r--r--components/util/str.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/util/str.rs b/components/util/str.rs
index dc3b8df1762..8ffcf67b0e9 100644
--- a/components/util/str.rs
+++ b/components/util/str.rs
@@ -16,7 +16,7 @@ use std::iter::{Filter, Peekable};
use std::ops::{Deref, DerefMut};
use std::str::{Bytes, CharIndices, FromStr, Split, from_utf8};
-#[derive(Clone, PartialOrd, Ord, PartialEq, Eq, Deserialize, Serialize, Hash, Debug)]
+#[derive(Clone, Debug, Deserialize, Eq, Hash, HeapSizeOf, Ord, PartialEq, PartialOrd, Serialize)]
pub struct DOMString(String);
impl !Send for DOMString {}
@@ -220,7 +220,7 @@ pub fn parse_unsigned_integer<T: Iterator<Item=char>>(input: T) -> Option<u32> {
})
}
-#[derive(Copy, Clone, Debug, PartialEq)]
+#[derive(Clone, Copy, Debug, HeapSizeOf, PartialEq)]
pub enum LengthOrPercentageOrAuto {
Auto,
Percentage(f32),