mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Auto merge of #19868 - CYBAI:specific-assertion, r=emilio
Use specific assertions Similar to #19865 r? jdm Note: Should I squash all the commits into one commit? --- - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes do not require tests because it should not break anything <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/19868) <!-- Reviewable:end -->
This commit is contained in:
commit
c9ba16f9fb
40 changed files with 90 additions and 90 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