mirror of
https://github.com/servo/servo.git
synced 2025-08-01 11:40:30 +01:00
Don't consume self when calling root on a Temporary<T>.
Fixes issue #5540.
This commit is contained in:
parent
3c5c2f416b
commit
04468a53df
1 changed files with 1 additions and 1 deletions
|
@ -173,7 +173,7 @@ impl<T: Reflectable> Temporary<T> {
|
|||
}
|
||||
|
||||
/// Create a stack-bounded root for this value.
|
||||
pub fn root(self) -> Root<T> {
|
||||
pub fn root(&self) -> Root<T> {
|
||||
STACK_ROOTS.with(|ref collection| {
|
||||
let RootCollectionPtr(collection) = collection.get().unwrap();
|
||||
unsafe {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue