diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2018-01-25 18:06:33 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-25 18:06:33 -0600 |
commit | c9ba16f9fbdf7f43cb19feedfaaa68c85bbcbe3b (patch) | |
tree | b6b5d9e1539d294fdbba5fec5a545d8aa6552443 /components/layout/layout_debug.rs | |
parent | fc3b1789318afc8f10e160d40b592234fbdb5cf4 (diff) | |
parent | 31631cdc47618a1591b6520eab8c82b28ac13bee (diff) | |
download | servo-c9ba16f9fbdf7f43cb19feedfaaa68c85bbcbe3b.tar.gz servo-c9ba16f9fbdf7f43cb19feedfaaa68c85bbcbe3b.zip |
Auto merge of #19868 - CYBAI:specific-assertion, r=emilio
Use specific assertions
Similar to #19865
r? jdm
Note: Should I squash all the commits into one commit?
---
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes do not require tests because it should not break anything
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/19868)
<!-- Reviewable:end -->
Diffstat (limited to 'components/layout/layout_debug.rs')
-rw-r--r-- | components/layout/layout_debug.rs | 2 |
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(); |