mirror of
https://github.com/servo/servo.git
synced 2025-08-04 13:10:20 +01:00
parent
af4c3901d8
commit
8d86f89f63
1 changed files with 0 additions and 5 deletions
|
@ -433,11 +433,6 @@ impl<T: Reflectable> Root<T> {
|
||||||
&**self
|
&**self
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Don't use this. Don't make me find you.
|
|
||||||
pub fn get_unsound_ref_forever<'a, 'b>(&'a self) -> &'b T {
|
|
||||||
unsafe { &**self.ptr }
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Generate a new root from a JS<T> reference
|
/// Generate a new root from a JS<T> reference
|
||||||
#[allow(unrooted_must_root)]
|
#[allow(unrooted_must_root)]
|
||||||
pub fn from_rooted(js: JS<T>) -> Root<T> {
|
pub fn from_rooted(js: JS<T>) -> Root<T> {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue