mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Auto merge of #5550 - aneeshusa:fix-issue-5540, r=jdm
Fixes issue #5540. As far as I can tell this is all that's necessary, but I'm new to Rust, so let me know if I missed something!
This commit is contained in:
commit
2089c1f285
1 changed files with 1 additions and 1 deletions
|
@ -174,7 +174,7 @@ impl<T: Reflectable> Temporary<T> {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Create a stack-bounded root for this value.
|
/// 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| {
|
STACK_ROOTS.with(|ref collection| {
|
||||||
let RootCollectionPtr(collection) = collection.get().unwrap();
|
let RootCollectionPtr(collection) = collection.get().unwrap();
|
||||||
unsafe {
|
unsafe {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue