about summary refs log tree commit diff
path: root/src/libstd/thread
diff options
context:
space:
mode:
authorZack M. Davis <code@zackmdavis.net>2017-08-06 22:54:09 -0700
committerZack M. Davis <code@zackmdavis.net>2017-08-15 15:29:17 -0700
commit1b6c9605e41b7c7dc23e0e6f633f05912d0463dd (patch)
tree2482313e8e0761fd8e3ecddc8baad7bf96689b07 /src/libstd/thread
parent82be83cf744611a016fb09ae1afbffc04b3ed2e1 (diff)
downloadrust-1b6c9605e41b7c7dc23e0e6f633f05912d0463dd.tar.gz
rust-1b6c9605e41b7c7dc23e0e6f633f05912d0463dd.zip
use field init shorthand EVERYWHERE
Like #43008 (f668999), but _much more aggressive_.
Diffstat (limited to 'src/libstd/thread')
-rw-r--r--src/libstd/thread/local.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/thread/local.rs b/src/libstd/thread/local.rs
index 48f611a3439..7a9b642350f 100644
--- a/src/libstd/thread/local.rs
+++ b/src/libstd/thread/local.rs
@@ -258,8 +258,8 @@ impl<T: 'static> LocalKey<T> {
     pub const unsafe fn new(inner: unsafe fn() -> Option<&'static UnsafeCell<Option<T>>>,
                             init: fn() -> T) -> LocalKey<T> {
         LocalKey {
-            inner: inner,
-            init: init,
+            inner,
+            init,
         }
     }