mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Fix future illegal_floating_point_literal_pattern warnings.
They make component/style fail to build, because of `#[deny(warnings)]`
This commit is contained in:
parent
58253f545b
commit
8c9e5d9f9d
4 changed files with 23 additions and 19 deletions
|
@ -375,7 +375,7 @@ impl ::std::ops::Deref for AttrValue {
|
|||
pub fn parse_nonzero_length(value: &str) -> LengthOrPercentageOrAuto {
|
||||
match parse_length(value) {
|
||||
LengthOrPercentageOrAuto::Length(x) if x == Au::zero() => LengthOrPercentageOrAuto::Auto,
|
||||
LengthOrPercentageOrAuto::Percentage(0.) => LengthOrPercentageOrAuto::Auto,
|
||||
LengthOrPercentageOrAuto::Percentage(x) if x == 0. => LengthOrPercentageOrAuto::Auto,
|
||||
x => x,
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue