Skip to content

Commit 6812af0

Browse files
committed
Merge pull request #262 from adwhit/update-typeid-location
fix(imports): Update TypeId import location to "any" module
2 parents b512e23 + dd2534a commit 6812af0

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/header/mod.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,9 @@
44
//! why we're using Rust in the first place. To set or get any header, an object
55
//! must implement the `Header` trait from this module. Several common headers
66
//! are already provided, such as `Host`, `ContentType`, `UserAgent`, and others.
7-
use std::any::Any;
7+
use std::any::{Any, TypeId};
88
use std::borrow::Cow::{Borrowed, Owned};
99
use std::fmt;
10-
use std::intrinsics::TypeId;
1110
use std::raw::TraitObject;
1211
use std::str::from_utf8;
1312
use std::string::CowString;

src/net.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
//! A collection of traits abstracting over Listeners and Streams.
2-
use std::any::Any;
2+
use std::any::{Any, TypeId};
33
use std::fmt;
4-
use std::intrinsics::TypeId;
54
use std::io::{IoResult, IoError, ConnectionAborted, InvalidInput, OtherIoError,
65
Stream, Listener, Acceptor};
76
use std::io::net::ip::{SocketAddr, ToSocketAddr, Port};

0 commit comments

Comments
 (0)