Merge pull request #96 from mhart/update-hashmap-fmt

Update hash_map and fmt usages
This commit is contained in:
Jonathan Reem
2014-11-04 12:56:28 -08:00
2 changed files with 3 additions and 2 deletions

View File

@@ -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};

View File

@@ -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)
}
}