Fix some "unnecessary parentheses" warnings

This commit is contained in:
Simon Sapin 2018-01-21 09:02:56 +01:00
parent 6e3fba97bd
commit 897a5b39c5
8 changed files with 9 additions and 9 deletions

View file

@ -548,7 +548,7 @@ impl SizeConstraint {
max_size = max_size.map(|x| max(x, min_size));
if let Some(border) = border {
min_size = max((min_size - border), Au(0));
min_size = max(min_size - border, Au(0));
max_size = max_size.map(|x| max(x - border, Au(0)));
}