aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/script/dom/bindings/utils.rs
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2014-06-18 20:49:03 +0530
committerJack Moffitt <jack@metajack.im>2014-06-27 18:50:32 -0600
commitf5b5b337d3fd5eb6632e3133486e16eeea7566a5 (patch)
tree2c0f5a6ebc85a487a6f72976f021b555ce593da8 /src/components/script/dom/bindings/utils.rs
parent56dd5b943eb9652e160d6701c67eb1ff44eeee2a (diff)
downloadservo-f5b5b337d3fd5eb6632e3133486e16eeea7566a5.tar.gz
servo-f5b5b337d3fd5eb6632e3133486e16eeea7566a5.zip
Upgrade to latest Rust.
Diffstat (limited to 'src/components/script/dom/bindings/utils.rs')
-rw-r--r--src/components/script/dom/bindings/utils.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/components/script/dom/bindings/utils.rs b/src/components/script/dom/bindings/utils.rs
index 370b34f048a..d2c1a43ccf8 100644
--- a/src/components/script/dom/bindings/utils.rs
+++ b/src/components/script/dom/bindings/utils.rs
@@ -11,12 +11,12 @@ use dom::browsercontext;
use dom::window;
use servo_util::str::DOMString;
-use collections::hashmap::HashMap;
+use std::collections::hashmap::HashMap;
use libc;
use libc::c_uint;
use std::cell::Cell;
-use std::cmp::Eq;
use std::mem;
+use std::cmp::PartialEq;
use std::ptr;
use std::ptr::null;
use std::slice;
@@ -383,7 +383,7 @@ pub fn reflect_dom_object<T: Reflectable>
}
#[allow(raw_pointer_deriving)]
-#[deriving(Eq)]
+#[deriving(PartialEq)]
pub struct Reflector {
object: Cell<*mut JSObject>,
}
@@ -608,7 +608,7 @@ pub fn cx_for_dom_object<T: Reflectable>(obj: &T) -> *mut JSContext {
/// Check if an element name is valid. See http://www.w3.org/TR/xml/#NT-Name
/// for details.
-#[deriving(Eq)]
+#[deriving(PartialEq)]
pub enum XMLName {
QName,
Name,