forked from mirror/async-std
silence must use
This commit is contained in:
parent
fd6ae40817
commit
10c8b9a6d8
2 changed files with 2 additions and 2 deletions
|
@ -72,7 +72,7 @@ impl Stream for Interval {
|
|||
return Poll::Pending;
|
||||
}
|
||||
let interval = self.interval;
|
||||
std::mem::replace(&mut self.delay, Timer::after(interval));
|
||||
let _ = std::mem::replace(&mut self.delay, Timer::after(interval));
|
||||
Poll::Ready(Some(()))
|
||||
}
|
||||
}
|
||||
|
|
|
@ -59,7 +59,7 @@ impl<S: Stream> Stream for Throttle<S> {
|
|||
Poll::Ready(None) => Poll::Ready(None),
|
||||
Poll::Ready(Some(v)) => {
|
||||
*this.blocked = true;
|
||||
std::mem::replace(&mut *this.delay, Timer::after(*this.duration));
|
||||
let _ = std::mem::replace(&mut *this.delay, Timer::after(*this.duration));
|
||||
Poll::Ready(Some(v))
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue