diff options
author | Manish Goregaokar <manishsmail@gmail.com> | 2017-05-17 13:07:12 -0700 |
---|---|---|
committer | Manish Goregaokar <manishsmail@gmail.com> | 2017-05-19 20:33:02 -0700 |
commit | 2230332f460bea9550bfc07affa129ae64ae49b7 (patch) | |
tree | c3fecc2ac8bf3067770de0dc3f2289573e0bcf9b /components/geometry/lib.rs | |
parent | f05491166f21879f74758b2f03bbc4c4a4c31eb8 (diff) | |
download | servo-2230332f460bea9550bfc07affa129ae64ae49b7.tar.gz servo-2230332f460bea9550bfc07affa129ae64ae49b7.zip |
Update app_units to 0.4.1
Diffstat (limited to 'components/geometry/lib.rs')
-rw-r--r-- | components/geometry/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/geometry/lib.rs b/components/geometry/lib.rs index 55c1a165295..453cf0997c5 100644 --- a/components/geometry/lib.rs +++ b/components/geometry/lib.rs @@ -6,7 +6,7 @@ extern crate app_units; extern crate euclid; #[macro_use] extern crate heapsize; -use app_units::{Au, MAX_AU}; +use app_units::{Au, MAX_AU, MIN_AU}; use euclid::point::Point2D; use euclid::rect::Rect; use euclid::size::Size2D; @@ -38,7 +38,7 @@ known_heap_size!(0, DeviceIndependentPixel); #[inline(always)] pub fn max_rect() -> Rect<Au> { - Rect::new(Point2D::new(Au(i32::MIN / 2), Au(i32::MIN / 2)), Size2D::new(MAX_AU, MAX_AU)) + Rect::new(Point2D::new(MIN_AU / 2, MIN_AU / 2), Size2D::new(MAX_AU, MAX_AU)) } /// A helper function to convert a rect of `f32` pixels to a rect of app units. |