about summary refs log tree commit diff
path: root/src/libstd/thread_local
diff options
context:
space:
mode:
authorwe <vadim.petrochenkov@gmail.com>2015-01-17 07:34:10 +0300
committerwe <vadim.petrochenkov@gmail.com>2015-01-17 07:34:10 +0300
commit812ce6c190d896cf1cc1bef9f22c00266e962c43 (patch)
treea70faf13b6c86821d8cdfe12d4eebc6985201859 /src/libstd/thread_local
parent378fb5846d2d8dbc5ab24a5e92794c5c39d492dc (diff)
downloadrust-812ce6c190d896cf1cc1bef9f22c00266e962c43.tar.gz
rust-812ce6c190d896cf1cc1bef9f22c00266e962c43.zip
Remove unnecessary explicit conversions to *const T
Diffstat (limited to 'src/libstd/thread_local')
-rw-r--r--src/libstd/thread_local/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/thread_local/mod.rs b/src/libstd/thread_local/mod.rs
index e7c4e4ccdfb..4c99cff34da 100644
--- a/src/libstd/thread_local/mod.rs
+++ b/src/libstd/thread_local/mod.rs
@@ -449,7 +449,7 @@ mod imp {
         // destructor as running for this thread so calls to `get` will return
         // `None`.
         *(*ptr).dtor_running.get() = true;
-        ptr::read((*ptr).inner.get() as *const T);
+        ptr::read((*ptr).inner.get());
     }
 }