chore: remove redundant field names in struct literals (#1334)

This commit is contained in:
Taiki Endo
2019-07-20 10:43:19 -07:00
committed by Carl Lerche
parent 1b2d997863
commit 9af07ce208
26 changed files with 33 additions and 43 deletions
+2 -2
View File
@@ -268,7 +268,7 @@ impl<P: Park> CurrentThread<P> {
let num_futures = Arc::new(atomic::AtomicUsize::new(0));
CurrentThread {
scheduler: scheduler,
scheduler,
num_futures: num_futures.clone(),
park,
id,
@@ -279,7 +279,7 @@ impl<P: Park> CurrentThread<P> {
thread,
id,
},
spawn_receiver: spawn_receiver,
spawn_receiver,
}
}
+2 -2
View File
@@ -147,11 +147,11 @@ where
tick_num: AtomicUsize::new(0),
head_readiness: AtomicPtr::new(stub_ptr as *mut _),
tail_readiness: UnsafeCell::new(stub_ptr),
stub: stub,
stub,
});
Scheduler {
inner: inner,
inner,
nodes: List::new(),
}
}