mirror of
https://github.com/servo/servo.git
synced 2025-07-04 05:53:39 +01:00
Use specific assertion for specified text
This commit is contained in:
parent
f81ba5e9dd
commit
e4799cc997
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue