From 2230332f460bea9550bfc07affa129ae64ae49b7 Mon Sep 17 00:00:00 2001 From: Manish Goregaokar Date: Wed, 17 May 2017 13:07:12 -0700 Subject: Update app_units to 0.4.1 --- components/geometry/Cargo.toml | 2 +- components/geometry/lib.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'components/geometry') diff --git a/components/geometry/Cargo.toml b/components/geometry/Cargo.toml index 73368f5dfbf..a004a8936aa 100644 --- a/components/geometry/Cargo.toml +++ b/components/geometry/Cargo.toml @@ -14,6 +14,6 @@ path = "lib.rs" servo = ["euclid/unstable"] [dependencies] -app_units = "0.4" +app_units = "0.4.1" euclid = "0.11" heapsize = "0.3.0" 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 { - 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. -- cgit v1.2.3