mirror of
https://github.com/openharmony/third_party_rust_hyper.git
synced 2026-07-21 01:05:26 -04:00
Merge pull request #96 from mhart/update-hashmap-fmt
Update hash_map and fmt usages
This commit is contained in:
+2
-1
@@ -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};
|
||||
|
||||
|
||||
+1
-1
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user