about summary refs log tree commit diff
path: root/src/libstd/rt
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2013-06-25 17:02:03 -0700
committerAlex Crichton <alex@alexcrichton.com>2013-06-25 17:39:43 -0700
commitc109bed15b79c81fed4277abd0f4a71a221224c1 (patch)
treed2244fded61a1aef7e7ac2779182a8af2aaaeff2 /src/libstd/rt
parent032dcc57e8876e960837c3a050be2c7570e7eafd (diff)
downloadrust-c109bed15b79c81fed4277abd0f4a71a221224c1.tar.gz
rust-c109bed15b79c81fed4277abd0f4a71a221224c1.zip
Deny common lints by default for lib{std,extra}
Diffstat (limited to 'src/libstd/rt')
-rw-r--r--src/libstd/rt/thread_local_storage.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/rt/thread_local_storage.rs b/src/libstd/rt/thread_local_storage.rs
index 7187d2db41c..5041b559ecb 100644
--- a/src/libstd/rt/thread_local_storage.rs
+++ b/src/libstd/rt/thread_local_storage.rs
@@ -60,13 +60,13 @@ pub type Key = DWORD;
 #[cfg(windows)]
 pub unsafe fn create(key: &mut Key) {
     static TLS_OUT_OF_INDEXES: DWORD = 0xFFFFFFFF;
-    *key = unsafe { TlsAlloc() };
+    *key = TlsAlloc();
     assert!(*key != TLS_OUT_OF_INDEXES);
 }
 
 #[cfg(windows)]
 pub unsafe fn set(key: Key, value: *mut c_void) {
-    unsafe { assert!(0 != TlsSetValue(key, value)) }
+    assert!(0 != TlsSetValue(key, value))
 }
 
 #[cfg(windows)]