mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Use specific assertion for layout layout_debug
This commit is contained in:
parent
1a6154197b
commit
da4a4475de
1 changed files with 1 additions and 1 deletions
|
@ -114,7 +114,7 @@ pub fn begin_trace(flow_root: FlowRef) {
|
|||
/// file can then be viewed with an external tool.
|
||||
pub fn end_trace(generation: u32) {
|
||||
let mut thread_state = STATE_KEY.with(|ref r| r.borrow_mut().take().unwrap());
|
||||
assert!(thread_state.scope_stack.len() == 1);
|
||||
assert_eq!(thread_state.scope_stack.len(), 1);
|
||||
let mut root_scope = thread_state.scope_stack.pop().unwrap();
|
||||
root_scope.post = to_value(&thread_state.flow_root.base()).unwrap();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue