From c73eaefc47846174f5da58b044b0e1beac20a50a Mon Sep 17 00:00:00 2001 From: Manish Goregaokar Date: Wed, 10 Jun 2015 00:03:10 +0530 Subject: [PATCH] Audit and reduce unstable usage in net Reasons behind existing unstable features: std_misc: - `Handle` usage (API will be replaced and is perhaps broken) path_ext: - Checking if a file exists. This is doable from the File directly, but slightly longer core: - `FnBox` alloc: - `boxed::into_raw()` (naming) --- components/net/image_cache_task.rs | 2 +- components/net/lib.rs | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/components/net/image_cache_task.rs b/components/net/image_cache_task.rs index c16f5e9597b..e99d9047c0f 100644 --- a/components/net/image_cache_task.rs +++ b/components/net/image_cache_task.rs @@ -2,11 +2,11 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -use collections::borrow::ToOwned; use net_traits::image::base::{Image, load_from_memory}; use net_traits::image_cache_task::{ImageState, ImageCacheTask, ImageCacheChan, ImageCacheCommand}; use net_traits::image_cache_task::{ImageCacheResult, ImageResponse, UsePlaceholder}; use net_traits::load_whole_resource; +use std::borrow::ToOwned; use std::collections::HashMap; use std::collections::hash_map::Entry::{Occupied, Vacant}; use std::mem; diff --git a/components/net/lib.rs b/components/net/lib.rs index a69787276a1..5f5123c6106 100644 --- a/components/net/lib.rs +++ b/components/net/lib.rs @@ -15,7 +15,6 @@ extern crate net_traits; extern crate cookie as cookie_rs; extern crate devtools_traits; -extern crate collections; extern crate flate2; extern crate geom; extern crate hyper;