diff options
| author | we <vadim.petrochenkov@gmail.com> | 2015-01-17 07:34:10 +0300 |
|---|---|---|
| committer | we <vadim.petrochenkov@gmail.com> | 2015-01-17 07:34:10 +0300 |
| commit | 812ce6c190d896cf1cc1bef9f22c00266e962c43 (patch) | |
| tree | a70faf13b6c86821d8cdfe12d4eebc6985201859 /src/libcore/ptr.rs | |
| parent | 378fb5846d2d8dbc5ab24a5e92794c5c39d492dc (diff) | |
| download | rust-812ce6c190d896cf1cc1bef9f22c00266e962c43.tar.gz rust-812ce6c190d896cf1cc1bef9f22c00266e962c43.zip | |
Remove unnecessary explicit conversions to *const T
Diffstat (limited to 'src/libcore/ptr.rs')
| -rw-r--r-- | src/libcore/ptr.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcore/ptr.rs b/src/libcore/ptr.rs index baf998d0828..0b89467d63b 100644 --- a/src/libcore/ptr.rs +++ b/src/libcore/ptr.rs @@ -329,7 +329,7 @@ impl<T> PtrExt for *mut T { #[inline] #[stable] unsafe fn offset(self, count: int) -> *mut T { - intrinsics::offset(self as *const T, count) as *mut T + intrinsics::offset(self, count) as *mut T } #[inline] |
