about summary refs log tree commit diff
path: root/src/libstd/sync
diff options
context:
space:
mode:
authorteresy <hi.teresy@gmail.com>2018-11-06 15:05:44 -0500
committerteresy <hi.teresy@gmail.com>2018-11-06 15:05:44 -0500
commiteca11b99a7d25e4e6573472a16537c1aacb5d5e1 (patch)
treeb4548341f7c93bad5db8f4f259a5b293e1f915fd /src/libstd/sync
parent1dceaddfbe163e2d916c904b98923342730ba970 (diff)
downloadrust-eca11b99a7d25e4e6573472a16537c1aacb5d5e1.tar.gz
rust-eca11b99a7d25e4e6573472a16537c1aacb5d5e1.zip
refactor: use shorthand fields
Diffstat (limited to 'src/libstd/sync')
-rw-r--r--src/libstd/sync/mpsc/mod.rs2
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.