mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
style: Rustfmt recent changes.
This commit is contained in:
parent
152ef2e042
commit
5f173c463e
16 changed files with 53 additions and 43 deletions
|
@ -546,7 +546,9 @@ pub enum NumberOrPercentage {
|
|||
impl NumberOrPercentage {
|
||||
fn clamp_to_non_negative(self) -> Self {
|
||||
match self {
|
||||
NumberOrPercentage::Percentage(p) => NumberOrPercentage::Percentage(p.clamp_to_non_negative()),
|
||||
NumberOrPercentage::Percentage(p) => {
|
||||
NumberOrPercentage::Percentage(p.clamp_to_non_negative())
|
||||
},
|
||||
NumberOrPercentage::Number(n) => NumberOrPercentage::Number(n.max(0.)),
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue