From c1638f8e277c1bea79324c001b9de55c26e77f56 Mon Sep 17 00:00:00 2001 From: eschweic Date: Tue, 20 Aug 2013 09:53:20 -0700 Subject: [PATCH] Fix quatree test; warning police --- src/components/main/compositing/quadtree.rs | 8 ++++---- src/components/main/constellation.rs | 1 - 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/components/main/compositing/quadtree.rs b/src/components/main/compositing/quadtree.rs index 6d1b323952e..364f44b5b42 100644 --- a/src/components/main/compositing/quadtree.rs +++ b/src/components/main/compositing/quadtree.rs @@ -750,13 +750,13 @@ pub fn test_resize() { let mut q = Quadtree::new(6, 6, 1, None); q.add_tile_pixel(0, 0, 1f32, T{a: 0}); q.add_tile_pixel(5, 5, 1f32, T{a: 1}); - q.resize(8, 1); + q.bad_resize(8, 1); assert!(q.root.size == 8.0); - q.resize(18, 1); + q.bad_resize(18, 1); assert!(q.root.size == 32.0); - q.resize(8, 1); + q.bad_resize(8, 1); assert!(q.root.size == 8.0); - q.resize(3, 1); + q.bad_resize(3, 1); assert!(q.root.size == 4.0); assert!(q.get_all_tiles().len() == 1); } diff --git a/src/components/main/constellation.rs b/src/components/main/constellation.rs index a00aec606c6..1cadfe16a43 100644 --- a/src/components/main/constellation.rs +++ b/src/components/main/constellation.rs @@ -27,7 +27,6 @@ use std::hashmap::{HashMap, HashSet}; use std::util::replace; use extra::url::Url; use extra::future::{Future, from_value}; -use extra::url::Url; /// Maintains the pipelines and navigation context and grants permission to composite pub struct Constellation {