mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Remove Deref and DerefMut implementations from WeakFlowRef.
By definition of a weak pointer, these implementations cannot be safe.
This commit is contained in:
parent
8892f8175d
commit
b37d9cc173
2 changed files with 13 additions and 22 deletions
|
@ -1393,7 +1393,7 @@ impl ContainingBlockLink {
|
|||
panic!("Link to containing block not established; perhaps you forgot to call \
|
||||
`set_absolute_descendants`?")
|
||||
}
|
||||
Some(ref mut link) => link.generated_containing_block_size(for_flow),
|
||||
Some(ref link) => link.upgrade().unwrap().generated_containing_block_size(for_flow),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue