diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2013-06-25 17:02:03 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2013-06-25 17:39:43 -0700 |
| commit | c109bed15b79c81fed4277abd0f4a71a221224c1 (patch) | |
| tree | d2244fded61a1aef7e7ac2779182a8af2aaaeff2 /src/libstd/rt | |
| parent | 032dcc57e8876e960837c3a050be2c7570e7eafd (diff) | |
| download | rust-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.rs | 4 |
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)] |
