mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
Unwrap pointers and miscellany for unrooted_must_root check
This commit is contained in:
parent
bded5c3703
commit
d241826987
3 changed files with 9 additions and 0 deletions
|
@ -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)
|
||||
}
|
||||
|
|
|
@ -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!();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue