From dd2534a6863f8b3940d2776e6b6a8e48988b9b88 Mon Sep 17 00:00:00 2001 From: Alex Whitney Date: Wed, 21 Jan 2015 17:52:50 +0000 Subject: [PATCH] fix(imports): Update TypeID import location to "any" --- src/header/mod.rs | 3 +-- src/net.rs | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/header/mod.rs b/src/header/mod.rs index 12a2f14f02..9dba3252d9 100644 --- a/src/header/mod.rs +++ b/src/header/mod.rs @@ -4,10 +4,9 @@ //! why we're using Rust in the first place. To set or get any header, an object //! must implement the `Header` trait from this module. Several common headers //! are already provided, such as `Host`, `ContentType`, `UserAgent`, and others. -use std::any::Any; +use std::any::{Any, TypeId}; use std::borrow::Cow::{Borrowed, Owned}; use std::fmt; -use std::intrinsics::TypeId; use std::raw::TraitObject; use std::str::from_utf8; use std::string::CowString; diff --git a/src/net.rs b/src/net.rs index 8d4dea9172..61f227c116 100644 --- a/src/net.rs +++ b/src/net.rs @@ -1,7 +1,6 @@ //! A collection of traits abstracting over Listeners and Streams. -use std::any::Any; +use std::any::{Any, TypeId}; use std::fmt; -use std::intrinsics::TypeId; use std::io::{IoResult, IoError, ConnectionAborted, InvalidInput, OtherIoError, Stream, Listener, Acceptor}; use std::io::net::ip::{SocketAddr, ToSocketAddr, Port};