aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout/layout_debug.rs
diff options
context:
space:
mode:
authorCYBAI <cyb.ai.815@gmail.com>2018-01-25 23:47:10 +0800
committerCYBAI <cyb.ai.815@gmail.com>2018-01-26 01:01:01 +0800
commitda4a4475de9c2f176d541a3b930fef0e3b1e3a9f (patch)
treeb2144d8684b74a2322e2dad4f992beff35abddff /components/layout/layout_debug.rs
parent1a6154197b7ebbd33308a8d3bbcb1282036725f4 (diff)
downloadservo-da4a4475de9c2f176d541a3b930fef0e3b1e3a9f.tar.gz
servo-da4a4475de9c2f176d541a3b930fef0e3b1e3a9f.zip
Use specific assertion for layout layout_debug
Diffstat (limited to 'components/layout/layout_debug.rs')
-rw-r--r--components/layout/layout_debug.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/layout/layout_debug.rs b/components/layout/layout_debug.rs
index 466399ca8f0..26fd4fb3e3f 100644
--- a/components/layout/layout_debug.rs
+++ b/components/layout/layout_debug.rs
@@ -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();