From 28fa83e36bf32cba16ab105acac7c1fa880122e8 Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Mon, 29 Dec 2014 18:30:16 -0600 Subject: [PATCH] use geom::num::Zero rather than the deprecated num::Zero trait in std This fixes the following warning: display_list/mod.rs:735:20: 735:30 warning: use of deprecated item: Use `Int::zero()` or `Float::zero()`., #[warn(deprecated)] on by default display_list/mod.rs:735 let zero = Zero::zero(); ^~~~~~~~~~ --- components/gfx/display_list/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/gfx/display_list/mod.rs b/components/gfx/display_list/mod.rs index c6ad40c64d9..4ac959679a7 100644 --- a/components/gfx/display_list/mod.rs +++ b/components/gfx/display_list/mod.rs @@ -27,6 +27,7 @@ use text::TextRun; use azure::azure::AzFloat; use collections::dlist::{mod, DList}; use geom::{Point2D, Rect, SideOffsets2D, Size2D, Matrix2D}; +use geom::num::Zero; use libc::uintptr_t; use paint_task::PaintLayer; use servo_msg::compositor_msg::LayerId; @@ -37,7 +38,6 @@ use servo_util::geometry::{mod, Au, MAX_RECT, ZERO_POINT, ZERO_RECT}; use servo_util::range::Range; use servo_util::smallvec::{SmallVec, SmallVec8}; use std::fmt; -use std::num::Zero; use std::slice::Items; use style::ComputedValues; use style::computed_values::border_style;