diff options
| author | Corey Richardson <corey@octayn.net> | 2014-02-14 18:42:01 -0500 |
|---|---|---|
| committer | Corey Richardson <corey@octayn.net> | 2014-02-15 12:11:41 -0500 |
| commit | 49e11630fa84eefc27a34c39ad28a9afb515c5a1 (patch) | |
| tree | ed7700d5a4ccb1666fc975bc5962a32737f90836 /src/libstd/sync | |
| parent | 3496e93d13590140242f862c905dc2d591d2e2ea (diff) | |
| download | rust-49e11630fa84eefc27a34c39ad28a9afb515c5a1.tar.gz rust-49e11630fa84eefc27a34c39ad28a9afb515c5a1.zip | |
std: clean up ptr a bit
Diffstat (limited to 'src/libstd/sync')
| -rw-r--r-- | src/libstd/sync/deque.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/sync/deque.rs b/src/libstd/sync/deque.rs index 7feff127d69..7ce760040e6 100644 --- a/src/libstd/sync/deque.rs +++ b/src/libstd/sync/deque.rs @@ -363,7 +363,7 @@ impl<T: Send> Buffer<T> { // very unsafe method which the caller needs to treat specially in case a // race is lost. unsafe fn get(&self, i: int) -> T { - ptr::read_ptr(self.storage.offset(i & self.mask())) + ptr::read(self.storage.offset(i & self.mask())) } // Unsafe because this unsafely overwrites possibly uninitialized or |
