aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2014-09-16 23:31:40 +0530
committerManish Goregaokar <manishsmail@gmail.com>2014-09-16 23:31:40 +0530
commitd241826987a1f701452eb95fc50603d5aba8c890 (patch)
tree2d33fc92a81a804bd096172a8cd67daf548d8500 /components/script/dom
parentbded5c370344c5ed77b706c36e0caf911fbe4e3d (diff)
downloadservo-d241826987a1f701452eb95fc50603d5aba8c890.tar.gz
servo-d241826987a1f701452eb95fc50603d5aba8c890.zip
Unwrap pointers and miscellany for unrooted_must_root check
Diffstat (limited to 'components/script/dom')
-rw-r--r--components/script/dom/bindings/js.rs2
-rw-r--r--components/script/dom/htmlserializer.rs1
2 files changed, 3 insertions, 0 deletions
diff --git a/components/script/dom/bindings/js.rs b/components/script/dom/bindings/js.rs
index c77ae3cba17..7754adce672 100644
--- a/components/script/dom/bindings/js.rs
+++ b/components/script/dom/bindings/js.rs
@@ -113,6 +113,7 @@ pub struct JS<T> {
}
impl<T> PartialEq for JS<T> {
+ #[allow(unrooted_must_root)]
fn eq(&self, other: &JS<T>) -> bool {
self.ptr == other.ptr
}
@@ -373,6 +374,7 @@ impl RootCollection {
}
/// Create a new stack-bounded root that will not outlive this collection
+ #[allow(unrooted_must_root)]
fn new_root<'a, 'b, T: Reflectable>(&'a self, unrooted: &JS<T>) -> Root<'a, 'b, T> {
Root::new(self, unrooted)
}
diff --git a/components/script/dom/htmlserializer.rs b/components/script/dom/htmlserializer.rs
index 624ede52bb7..3737b498bb1 100644
--- a/components/script/dom/htmlserializer.rs
+++ b/components/script/dom/htmlserializer.rs
@@ -21,6 +21,7 @@ use dom::text::Text;
use servo_util::atom::Atom;
use servo_util::namespace;
+#[allow(unrooted_must_root)]
pub fn serialize(iterator: &mut NodeIterator) -> String {
let mut html = String::new();
let mut open_elements: Vec<String> = vec!();