style: Undo minor debugging change.

This commit is contained in:
Emilio Cobos Álvarez 2019-11-30 14:30:01 +01:00
parent f8e924f86a
commit 59eef57eb7
No known key found for this signature in database
GPG key ID: E1152D0994E4BF8A

View file

@ -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);
}