aboutsummaryrefslogtreecommitdiffstats
path: root/components/util
diff options
context:
space:
mode:
authorMichael Howell <michael@notriddle.com>2016-09-27 16:39:05 -0700
committerMichael Howell <michael@notriddle.com>2016-09-29 10:29:35 -0700
commit81676ea9d268aab88abab7a52ff88bff91298f54 (patch)
tree9f7b0896713a85810919f3bd13b521b763877fd2 /components/util
parentabe8c0d457e51940b85675fdd3679cc9fbca2e75 (diff)
downloadservo-81676ea9d268aab88abab7a52ff88bff91298f54.tar.gz
servo-81676ea9d268aab88abab7a52ff88bff91298f54.zip
Add assertion that this is not a flex item
Diffstat (limited to 'components/util')
-rw-r--r--components/util/lib.rs16
1 files changed, 8 insertions, 8 deletions
diff --git a/components/util/lib.rs b/components/util/lib.rs
index edc4a27da42..11b6afbbc8e 100644
--- a/components/util/lib.rs
+++ b/components/util/lib.rs
@@ -46,11 +46,11 @@ pub fn servo_version() -> String {
}
pub fn clamp<T: Ord>(lo: T, mid: T, hi: T) -> T {
- if mid < lo {
- lo
- } else if mid > hi {
- hi
- } else {
- mid
- }
-} \ No newline at end of file
+ if mid < lo {
+ lo
+ } else if mid > hi {
+ hi
+ } else {
+ mid
+ }
+}