diff options
| author | kennytm <kennytm@gmail.com> | 2018-11-07 18:02:05 +0800 |
|---|---|---|
| committer | kennytm <kennytm@gmail.com> | 2018-11-07 21:27:00 +0800 |
| commit | 9d9146ad957494821aa3d54aedf4dbcb6c3b7cea (patch) | |
| tree | ca62a9b11c4a34f8ca15040e97fdd144e58d075b /src/libstd/sync | |
| parent | e222d1db3c0fc437a7e44af7a44d3e8628cc875a (diff) | |
| parent | eca11b99a7d25e4e6573472a16537c1aacb5d5e1 (diff) | |
| download | rust-9d9146ad957494821aa3d54aedf4dbcb6c3b7cea.tar.gz rust-9d9146ad957494821aa3d54aedf4dbcb6c3b7cea.zip | |
Rollup merge of #55734 - teresy:shorthand-fields, r=davidtwco
refactor: use shorthand fields refactor: use shorthand for single fields everywhere (excluding tests).
Diffstat (limited to 'src/libstd/sync')
| -rw-r--r-- | src/libstd/sync/mpsc/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/sync/mpsc/mod.rs b/src/libstd/sync/mpsc/mod.rs index 59cf741487e..81f98a55c11 100644 --- a/src/libstd/sync/mpsc/mod.rs +++ b/src/libstd/sync/mpsc/mod.rs @@ -931,7 +931,7 @@ impl<T> fmt::Debug for Sender<T> { impl<T> SyncSender<T> { fn new(inner: Arc<sync::Packet<T>>) -> SyncSender<T> { - SyncSender { inner: inner } + SyncSender { inner } } /// Sends a value on this synchronous channel. |
