From 1acf567061377262892552205755741459ede696 Mon Sep 17 00:00:00 2001 From: Michael Hart Date: Tue, 4 Nov 2014 12:34:35 -0500 Subject: [PATCH] Update hash_map and fmt usages Depends on https://github.com/carllerche/curl-rust/pull/24 and https://github.com/chris-morgan/rust-http/pull/167 --- src/header/mod.rs | 3 ++- src/status.rs | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/header/mod.rs b/src/header/mod.rs index 444671a5..6fee7712 100644 --- a/src/header/mod.rs +++ b/src/header/mod.rs @@ -9,7 +9,8 @@ use std::fmt::{mod, Show}; use std::intrinsics::TypeId; use std::raw::TraitObject; use std::str::{SendStr, Slice, Owned}; -use std::collections::hashmap::{HashMap, Entries, Occupied, Vacant}; +use std::collections::HashMap; +use std::collections::hash_map::{Entries, Occupied, Vacant}; use std::sync::RWLock; use std::{hash, mem}; diff --git a/src/status.rs b/src/status.rs index eb8d9faa..3c8f80de 100644 --- a/src/status.rs +++ b/src/status.rs @@ -1571,7 +1571,7 @@ impl StatusCode { impl fmt::Unsigned for StatusCode { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { - fmt::secret_unsigned(&(*self as u16), f) + fmt::Unsigned::fmt(&(*self as u16), f) } }