Skip to content

Commit 9c7b48c

Browse files
committed
fmt: clippy
1 parent 8b4ac03 commit 9c7b48c

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

  • float-pigment-css/src/parser/property_value

float-pigment-css/src/parser/property_value/calc.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -176,10 +176,7 @@ impl ComputeCalcExpr<Angle> {
176176
_ => None,
177177
}
178178
}
179-
CalcExpr::Length(l) => match l {
180-
Length::Ratio(ratio) => Some(Angle::from_ratio(*ratio)),
181-
_ => None,
182-
},
179+
CalcExpr::Length(Length::Ratio(ratio)) => Some(Angle::from_ratio(*ratio)),
183180
_ => None,
184181
}
185182
}

0 commit comments

Comments
 (0)