aboutsummaryrefslogtreecommitdiffstats
path: root/components/style
diff options
context:
space:
mode:
Diffstat (limited to 'components/style')
-rw-r--r--components/style/logical_geometry.rs4
-rw-r--r--components/style/values/specified/text.rs2
2 files changed, 3 insertions, 3 deletions
diff --git a/components/style/logical_geometry.rs b/components/style/logical_geometry.rs
index 601f9a4c7bd..019bfbe3a0c 100644
--- a/components/style/logical_geometry.rs
+++ b/components/style/logical_geometry.rs
@@ -265,12 +265,12 @@ impl DebugWritingMode {
impl DebugWritingMode {
#[inline]
fn check(&self, other: WritingMode) {
- assert!(self.mode == other)
+ assert_eq!(self.mode, other)
}
#[inline]
fn check_debug(&self, other: DebugWritingMode) {
- assert!(self.mode == other.mode)
+ assert_eq!(self.mode, other.mode)
}
#[inline]
diff --git a/components/style/values/specified/text.rs b/components/style/values/specified/text.rs
index 0f60f5d7f4a..41ebe0cce86 100644
--- a/components/style/values/specified/text.rs
+++ b/components/style/values/specified/text.rs
@@ -230,7 +230,7 @@ impl ToComputedValue for TextOverflow {
#[inline]
fn from_computed_value(computed: &Self::ComputedValue) -> Self {
if computed.sides_are_logical {
- assert!(computed.first == TextOverflowSide::Clip);
+ assert_eq!(computed.first, TextOverflowSide::Clip);
TextOverflow {
first: computed.second.clone(),
second: None,