diff options
Diffstat (limited to 'components/layout/model.rs')
-rw-r--r-- | components/layout/model.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/layout/model.rs b/components/layout/model.rs index 05a5d589855..49506b43475 100644 --- a/components/layout/model.rs +++ b/components/layout/model.rs @@ -4,7 +4,7 @@ //! Borders, padding, and margins. -#![deny(unsafe_block)] +#![deny(unsafe_blocks)] use fragment::Fragment; @@ -217,7 +217,7 @@ impl MarginCollapseInfo { (AccumulatingCollapsibleTopMargin, MarginsCollapse(..)) => { // Can't happen because the state will have been replaced with // `AccumulatingMarginIn` above. - fail!("should not be accumulating collapsible block_start margins anymore!") + panic!("should not be accumulating collapsible block_start margins anymore!") } (AccumulatingCollapsibleTopMargin, MarginsCollapseThrough(margin)) => { self.block_start_margin.union(margin); |