mirror of
https://github.com/servo/servo.git
synced 2025-07-03 05:23:38 +01:00
Use specific assertion for style logical geometry
This commit is contained in:
parent
9c7ff219d7
commit
775d6abb34
1 changed files with 2 additions and 2 deletions
|
@ -265,12 +265,12 @@ impl DebugWritingMode {
|
||||||
impl DebugWritingMode {
|
impl DebugWritingMode {
|
||||||
#[inline]
|
#[inline]
|
||||||
fn check(&self, other: WritingMode) {
|
fn check(&self, other: WritingMode) {
|
||||||
assert!(self.mode == other)
|
assert_eq!(self.mode, other)
|
||||||
}
|
}
|
||||||
|
|
||||||
#[inline]
|
#[inline]
|
||||||
fn check_debug(&self, other: DebugWritingMode) {
|
fn check_debug(&self, other: DebugWritingMode) {
|
||||||
assert!(self.mode == other.mode)
|
assert_eq!(self.mode, other.mode)
|
||||||
}
|
}
|
||||||
|
|
||||||
#[inline]
|
#[inline]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue