diff options
| author | JeremyLetang <letang.jeremy@gmail.com> | 2014-02-10 16:50:42 -0500 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2014-02-13 12:54:17 -0800 |
| commit | 60bc76fb78d226078a901efd94f61463c0d93b9a (patch) | |
| tree | 8c8777c148f24c82d45728e9817cd9a8b4de223d /src/libextra | |
| parent | 1c5295c0bf6e69a772120ec6a56e0fdb3021ded4 (diff) | |
| download | rust-60bc76fb78d226078a901efd94f61463c0d93b9a.tar.gz rust-60bc76fb78d226078a901efd94f61463c0d93b9a.zip | |
remove duplicate function from std::ptr (is_null, is_not_null, offset, mut_offset)
Diffstat (limited to 'src/libextra')
| -rw-r--r-- | src/libextra/c_vec.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libextra/c_vec.rs b/src/libextra/c_vec.rs index 35a6ccaa708..fec5b105c4b 100644 --- a/src/libextra/c_vec.rs +++ b/src/libextra/c_vec.rs @@ -119,7 +119,7 @@ impl <T> CVec<T> { pub fn get<'a>(&'a self, ofs: uint) -> &'a T { assert!(ofs < self.len); unsafe { - &*ptr::mut_offset(self.base, ofs as int) + &*self.base.offset(ofs as int) } } @@ -131,7 +131,7 @@ impl <T> CVec<T> { pub fn get_mut<'a>(&'a mut self, ofs: uint) -> &'a mut T { assert!(ofs < self.len); unsafe { - &mut *ptr::mut_offset(self.base, ofs as int) + &mut *self.base.offset(ofs as int) } } |
