From 81676ea9d268aab88abab7a52ff88bff91298f54 Mon Sep 17 00:00:00 2001 From: Michael Howell Date: Tue, 27 Sep 2016 16:39:05 -0700 Subject: Add assertion that this is not a flex item --- components/util/lib.rs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'components/util') 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(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 + } +} -- cgit v1.2.3