Avoid entraining various Debug impls in release builds.

MozReview-Commit-ID: Lp9i9EI5qdU
This commit is contained in:
Bobby Holley 2018-01-12 15:22:07 -08:00
parent 6ca651c0c8
commit f858ce91e8
9 changed files with 35 additions and 49 deletions

View file

@ -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"),
}
}