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 {