chore: remove unnecessary conversion (#1332)

This commit is contained in:
Taiki Endo
2019-07-20 12:10:42 -04:00
committed by Lucio Franco
parent 9d3e5aac08
commit 7a52ddcd09
7 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -34,7 +34,7 @@ impl AtomicStack {
/// on the stack, `Err` if the timer is shutdown.
pub fn push(&self, entry: &Arc<Entry>) -> Result<bool, Error> {
// First, set the queued bit on the entry
let queued = entry.queued.fetch_or(true, SeqCst).into();
let queued = entry.queued.fetch_or(true, SeqCst);
if queued {
// Already queued, nothing more to do
+1 -1
View File
@@ -302,7 +302,7 @@ impl Entry {
self.waker.register_by_ref(cx.waker());
curr = self.state.load(SeqCst).into();
curr = self.state.load(SeqCst);
if is_elapsed(curr) {
return Poll::Ready(if curr == ERROR {