mirror of
https://github.com/servo/servo.git
synced 2025-08-16 10:55:34 +01:00
Avoid entraining various Debug impls in release builds.
MozReview-Commit-ID: Lp9i9EI5qdU
This commit is contained in:
parent
6ca651c0c8
commit
f858ce91e8
9 changed files with 35 additions and 49 deletions
|
@ -114,7 +114,7 @@ impl nsCSSValue {
|
|||
nsCSSUnit::eCSSUnit_Calc => {
|
||||
LengthOrPercentage::Calc(bindings::Gecko_CSSValue_GetCalc(self).into())
|
||||
},
|
||||
x => panic!("The unit should not be {:?}", x),
|
||||
_ => panic!("Unexpected unit"),
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -124,7 +124,7 @@ impl nsCSSValue {
|
|||
nsCSSUnit::eCSSUnit_Pixel => {
|
||||
Length::new(bindings::Gecko_CSSValue_GetNumber(self))
|
||||
},
|
||||
x => panic!("The unit should not be {:?}", x),
|
||||
_ => panic!("Unexpected unit"),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue