Use specific assertion for style logical geometry

This commit is contained in:
CYBAI 2018-01-26 01:00:03 +08:00
parent 9c7ff219d7
commit 775d6abb34

View file

@ -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]