Remove useless pointer cast
This commit is contained in:
parent
6c943bad02
commit
ed084ba292
@ -148,7 +148,7 @@ impl<T, A: Allocator> Iterator for IntoIter<T, A> {
|
|||||||
|
|
||||||
#[inline]
|
#[inline]
|
||||||
fn next(&mut self) -> Option<T> {
|
fn next(&mut self) -> Option<T> {
|
||||||
if self.ptr as *const _ == self.end {
|
if self.ptr == self.end {
|
||||||
None
|
None
|
||||||
} else if mem::size_of::<T>() == 0 {
|
} else if mem::size_of::<T>() == 0 {
|
||||||
// purposefully don't use 'ptr.offset' because for
|
// purposefully don't use 'ptr.offset' because for
|
||||||
|
Loading…
x
Reference in New Issue
Block a user