mirror of
https://github.com/servo/servo.git
synced 2025-07-03 21:43:41 +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]
|
#[inline]
|
||||||
fn from_computed_value(computed: &Self::ComputedValue) -> Self {
|
fn from_computed_value(computed: &Self::ComputedValue) -> Self {
|
||||||
if computed.sides_are_logical {
|
if computed.sides_are_logical {
|
||||||
assert!(computed.first == TextOverflowSide::Clip);
|
assert_eq!(computed.first, TextOverflowSide::Clip);
|
||||||
TextOverflow {
|
TextOverflow {
|
||||||
first: computed.second.clone(),
|
first: computed.second.clone(),
|
||||||
second: None,
|
second: None,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue