Skip to content

Commit 2c72e07

Browse files
committed
Update for renamed Box::into_raw (was boxed::into_raw)
1 parent 7323ffa commit 2c72e07

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/lib.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333
#![feature(iter_order)]
3434

3535
use std::borrow::Borrow;
36-
use std::boxed;
3736
use std::cmp::{PartialEq, Eq, Ordering};
3837
use std::collections::hash_map::{self, HashMap};
3938
use std::collections::hash_state::HashState;
@@ -117,7 +116,7 @@ impl<K: Hash + Eq, V, S: HashState> LinkedHashMap<K, V, S> {
117116
fn with_map(map: HashMap<KeyRef<K>, Box<LinkedHashMapEntry<K, V>>, S>) -> LinkedHashMap<K, V, S> {
118117
let map = LinkedHashMap {
119118
map: map,
120-
head: unsafe{ boxed::into_raw(Box::new(mem::uninitialized())) },
119+
head: unsafe{ Box::into_raw(Box::new(mem::uninitialized())) },
121120
};
122121
unsafe {
123122
(*map.head).next = map.head;

0 commit comments

Comments
 (0)