Rename {NonZero,Shared,Unique}::new to new_unchecked
This commit is contained in:
parent
e9af03a222
commit
0a08ad0443
20 changed files with 47 additions and 47 deletions
|
|
@ -893,7 +893,7 @@ impl<T> VecDeque<T> {
|
|||
self.head = drain_tail;
|
||||
|
||||
Drain {
|
||||
deque: unsafe { Shared::new(self as *mut _) },
|
||||
deque: unsafe { Shared::new_unchecked(self as *mut _) },
|
||||
after_tail: drain_head,
|
||||
after_head: head,
|
||||
iter: Iter {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue