about summary refs log tree commit diff
path: root/src/libstd/sync
diff options
context:
space:
mode:
authorCorey Richardson <corey@octayn.net>2014-02-14 18:42:01 -0500
committerCorey Richardson <corey@octayn.net>2014-02-15 12:11:41 -0500
commit49e11630fa84eefc27a34c39ad28a9afb515c5a1 (patch)
treeed7700d5a4ccb1666fc975bc5962a32737f90836 /src/libstd/sync
parent3496e93d13590140242f862c905dc2d591d2e2ea (diff)
downloadrust-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.rs2
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