refactor(lib): fix many lint warnings

This commit is contained in:
Sean McArthur
2019-08-21 11:58:02 -07:00
parent fc7f81b67c
commit 7b1d6d71b7
14 changed files with 27 additions and 71 deletions

View File

@@ -2,7 +2,7 @@ use futures_core::Stream;
use futures_channel::{mpsc, oneshot};
use futures_util::future;
use crate::common::{Future, Never, Pin, Poll, task};
use crate::common::{Future, Pin, Poll, task};
pub type RetryPromise<T, U> = oneshot::Receiver<Result<U, (crate::Error, Option<T>)>>;
pub type Promise<T> = oneshot::Receiver<Result<T, crate::Error>>;
@@ -136,9 +136,6 @@ pub struct Receiver<T, U> {
taker: want::Taker,
}
//impl<T, U> Stream for Receiver<T, U> {
// type Item = (T, Callback<T, U>);
impl<T, U> Receiver<T, U> {
pub(crate) fn poll_next(&mut self, cx: &mut task::Context<'_>) -> Poll<Option<(T, Callback<T, U>)>> {
match Pin::new(&mut self.inner).poll_next(cx) {