Skip to content

Commit

Permalink
style: Undo minor debugging change.
Browse files Browse the repository at this point in the history
  • Loading branch information
emilio committed Nov 30, 2019
1 parent f8e924f commit 59eef57
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions components/style/rule_cache.rs
Expand Up @@ -26,9 +26,7 @@ pub struct RuleCacheConditions {
impl RuleCacheConditions {
/// Sets the style as depending in the font-size value.
pub fn set_font_size_dependency(&mut self, font_size: NonNegativeLength) {
if let Some(f) = &self.font_size {
debug_assert_eq!(*f, font_size);
}
debug_assert!(self.font_size.map_or(true, |f| f == font_size));
self.font_size = Some(font_size);
}

Expand Down

0 comments on commit 59eef57

Please sign in to comment.